rabin 2 years ago
parent
commit
b9ae2ef742
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/Database.php
  2. 1 1
      src/Lib/Input.php

+ 1 - 1
src/Database.php

@@ -3536,7 +3536,7 @@ class Database
                 $result[$k] = '<div class="form-group ' . $class . '"><div class="margin-top">';
 
                 $style = '';
-                if ($v['update'] == 'hidden') {
+                if ($col && $v['update'] == 'hidden') {
                     $style = 'style="display:none"';
                 }
                 if ($layadmin) {

+ 1 - 1
src/Lib/Input.php

@@ -192,7 +192,7 @@ class Input
      */
     public static function _textarea($param)
     {
-        return '<textarea style="height:100px;" update_type="value" class="update_value form-control ' . (isset($param['valid']) ? $param['valid'] : '') . '" name="' . $param['name'] . '" >' . (isset($param['value']) ? $param['value'] : (isset($param['default']) ? $param['default'] : '')) . '</textarea>';
+        return '<textarea style="height:100px;" update_type="value" class="layui-input update_value form-control ' . (isset($param['valid']) ? $param['valid'] : '') . '" id="' . $param['name'] . '" name="' . $param['name'] . '" >' . (isset($param['value']) ? $param['value'] : (isset($param['default']) ? $param['default'] : '')) . '</textarea>';
 
         return '<textarea style="height:100px;" update_type="value" class="update_value form-control ' . (isset($param['valid']) ? $param['valid'] : '') . '" name="' . $param['name'] . '" value="' . (isset($param['value']) ? $param['value'] : (isset($param['default']) ? $param['default'] : '')) . '">' . (isset($param['value']) ? $param['value'] : (isset($param['default']) ? $param['default'] : '')) . '</textarea>';
     }