rabin %!s(int64=2) %!d(string=hai) anos
pai
achega
10f4980ba5
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/Lib/Input.php

+ 3 - 1
src/Lib/Input.php

@@ -1002,7 +1002,9 @@ class Input
         $html .= $hidden;
         $xm = true;
 
+        $base = 'name="' . $param['name'] . '" id="' . $param['name'] . '"';
         if (strstr($param['name'], 'up_col_')) {
+            $base = '';
             $xm = false;
         } elseif (!isset($param['select_type']) && isset($param['option']) && isset($param['update']) && $param['update'] == 'select') {
             $total = count($param['option']);
@@ -1124,7 +1126,7 @@ class Input
                 $child_class .= ' change';
             }
 
-            $html .= '<select class="update_value form-control ' . $child_class . '  ' . (isset($param['valid']) ? $param['valid'] : '') . '" name="' . $param['name'] . '" id="' . $param['name'] . '"  ' . $change . '  style="' . $style . '" data-validation-placeholder="0">';
+            $html .= '<select class="update_value form-control ' . $child_class . '  ' . (isset($param['valid']) ? $param['valid'] : '') . '" '.$base.'  ' . $change . '  style="' . $style . '" data-validation-placeholder="0">';
 
             if (isset($param['option'])) {