rabin 1 year ago
parent
commit
6bdd50b80b
1 changed files with 9 additions and 3 deletions
  1. 9 3
      lib/Manage.php

+ 9 - 3
lib/Manage.php

@@ -57,9 +57,15 @@ class Manage
                     $col['col_' . $v['col_id']] = 1;
                 }
                 foreach ($struct as $k => $v) {
-                    if (strstr($k, 'col_') && !isset($col[$k])) {
-                        $config[$k] = $v;
-                        $config[$k]['update'] = 'hidden';
+                    if (strstr($k, 'col_')) {
+                        if (isset($col[$k])) {
+                            $config[$k] = $v;
+                            $config[$k]['update'] = $v['update_bak'];
+                        } else {
+                            $config[$k] = $v;
+                            $config[$k]['update'] = 'hidden';
+                        }
+                        
                     }
                 }
             }