diff --git a/lib/zin/core/h.class.php b/lib/zin/core/h.class.php index 8314641739..04ac50277a 100644 --- a/lib/zin/core/h.class.php +++ b/lib/zin/core/h.class.php @@ -250,6 +250,7 @@ class h extends wg { if(empty($var)) continue; $val = h::encodeJsonWithRawJs($val); + if(empty($val)) $val = '[]'; if(str_starts_with($var, 'window.')) $jsCode .= "$var=" . $val . ';'; elseif(str_starts_with($var, '+')) $jsCode .= 'let ' . substr($var, 1) . '=' . $val . ';'; else $jsCode .= "const $var=" . $val . ';'; diff --git a/module/product/ui/browse.html.php b/module/product/ui/browse.html.php index 26e7a0bf1a..5ab995df16 100644 --- a/module/product/ui/browse.html.php +++ b/module/product/ui/browse.html.php @@ -155,7 +155,6 @@ $setting = $this->datatable->getSetting('story'); $cols = array_values($setting); foreach($cols as $key => $col) { - $col->name = $col->id; if($col->id == 'title') { $col->link = sprintf($col->link, createLink('story', 'view', array('storyID' => '${row.id}', 'version' => '0', 'param' => '0', 'storyType' => $storyType)));