瀏覽代碼

fixed icon term on select

CauseFX 3 年之前
父節點
當前提交
1acfa9ec4c
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      api/classes/organizr.class.php

+ 5 - 1
api/classes/organizr.class.php

@@ -7561,7 +7561,11 @@ class Organizr
 		$iconListing = json_decode($allIcons, true);
 		foreach ($iconListing as $setKey => $set) {
 			foreach ($set['children'] as $k => $v) {
-				if (stripos($v['text'], $term) !== false || !$term) {
+				if ($term) {
+					if (stripos($v['text'], $term) !== false) {
+						$goodIcons['results'][] = $v;
+					}
+				} else {
 					$goodIcons['results'][] = $v;
 				}
 			}