rabin 1 gadu atpakaļ
vecāks
revīzija
2d20871c3b
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      lib/Manage.php

+ 2 - 2
lib/Manage.php

@@ -35,8 +35,8 @@ class Manage
         $config['type_id'] = $struct['type_id'];
         $config['type_id']['name'] = '关联数据';
         if ($value == -1) {
-            /*
             $config['type_id']['update'] = 'hidden';
+            /*
             foreach ($struct as $k => $v) {
                 if (strstr($k, 'col_')) {
                     $config[$k] = $v;
@@ -47,7 +47,7 @@ class Manage
             $config['type_id']['update'] = 'select';
             $config['type_id']['update_search'] = 'page/lib/manage.search?type=' . $value;
             if ($data && $data['type_id']) {
-                $config['type_id']['update_search_value'] = $info['type_id'];
+                $config['type_id']['update_search_value'] = $data['type_id'];
             }
             /*
             $func = Dever::db('page/func')->find($value);