|
@@ -3643,7 +3643,7 @@ class Database
|
|
|
$table_body = '<tbody>';
|
|
|
$table_body .= '<tr class="table_copy" style="display:none;">';
|
|
|
foreach ($param['update'] as $hk => $hv) {
|
|
|
- if ($this->id && $hk == 'id') {
|
|
|
+ if ($this->id && $hk === 'id') {
|
|
|
$hv['update'] = 'hidden';
|
|
|
}
|
|
|
if (isset($hv['update']) && $hv['update']) {
|
|
@@ -3666,10 +3666,13 @@ class Database
|
|
|
$table_body .= '</tr>';
|
|
|
|
|
|
if (isset($param['value']) && $param['value']) {
|
|
|
+ if (!is_array($param['value'])) {
|
|
|
+ $param['value'] = Dever::json_decode($param['value']);
|
|
|
+ }
|
|
|
foreach ($param['value'] as $bk => $bv) {
|
|
|
$table_body .= '<tr>';
|
|
|
foreach ($param['update'] as $hk => $hv) {
|
|
|
- if ($this->id && $hk == 'id') {
|
|
|
+ if ($this->id && $hk === 'id') {
|
|
|
$hv['update'] = 'hidden';
|
|
|
}
|
|
|
if (isset($hv['update']) && $hv['update']) {
|