ShuanghongS 7 ヶ月 前
コミット
2b263ca604
2 ファイル変更6 行追加3 行削除
  1. 1 1
      service/ajax.class.php
  2. 5 2
      utils/utils.class.php

+ 1 - 1
service/ajax.class.php

@@ -112,7 +112,7 @@ class ajax {
                 "Destination Agent"=>" and (agent ilike '%" . common::check_input($term) . "%')",
                 "Shipper Name"=>" and (shipper ilike '%" . common::check_input($term) . "%')",
                 "Consignee Name"=>" and (consignee ilike '%" . common::check_input($term) . "%')",
-                "Notify Party"=>" and (notify_party ilike 'v" . common::check_input($term) . "%')",
+                "Notify Party"=>" and (notify_party ilike '%" . common::check_input($term) . "%')",
                 "Bill to"=>" and (billto ilike '%" . common::check_input($term) . "%')",
                 "Destination Operator"=>" and (dest_op ilike '%" . common::check_input($term) . "%')",
                 "Sales"=>" and (sales_rep ilike '%" . common::check_input($term) . "%')",

+ 5 - 2
utils/utils.class.php

@@ -714,8 +714,11 @@ class utils {
     public static function removeDuplicateArray($array){
         $result = array();
         foreach ($array as $value) {
-            if (!utils::in_array($value, $result)) {
-                $result[] = $value;
+            //过滤可能的空值,会引起前端页面有数据但无法显示
+            if(!empty($value)){
+                if (!utils::in_array($value, $result)) {
+                    $result[] = $value;
+                }
             }
         }
         return $result;