* Fix error.

This commit is contained in:
wangyidong
2023-06-13 15:46:08 +08:00
parent 7fcea662ba
commit 2b916bf6cc
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -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 . ';';
-1
View File
@@ -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)));