rabin 2 weeks ago
parent
commit
29c6f733e8
2 changed files with 4 additions and 1 deletions
  1. 1 1
      api/Page/Data.php
  2. 3 0
      api/Page/Update.php

+ 1 - 1
api/Page/Data.php

@@ -156,7 +156,7 @@ class Data extends Page
         $this->setting('search', $list_search, false, 'text');
         if ($list_search) {
             foreach ($list_search as $v) {
-                if ($v['type'] != 'hidden') {
+                if ($v['type'] != 'hidden1') {
                     $result['form'][] = $v;
                     if (is_numeric($v['value'])) {
                         $v['value'] = (float) $v['value'];

+ 3 - 0
api/Page/Update.php

@@ -132,6 +132,9 @@ class Update extends Page
             }
         }
         foreach ($info as $k => $v) {
+            if ($v == null) {
+                $v = '';
+            }
             if (isset($data['field'][$k])) {
                 if (is_array($data['field'][$k])) {
                     if ($v) {