From a1b499bb986045b28edb079bc018e9da4503dcbe Mon Sep 17 00:00:00 2001 From: holan20180123 Date: Tue, 3 Aug 2021 13:47:37 +0800 Subject: [PATCH] * Fix issue #364. --- module/doc/model.php | 4 ++-- module/doc/view/tablecontents.html.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/doc/model.php b/module/doc/model.php index 986fde7854..6d5782bedb 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -1734,7 +1734,7 @@ class docModel extends model $class = strpos($this->config->doc->officeTypes, $typeKey) !== false ? 'iframe' : ''; $icon = zget($this->config->doc->iconList, $typeKey); $html .= "
  • "; - $html .= html::a(helper::createLink('doc', 'create', "objectType=$objectType&objectID=$objectID&libID=$libID&moduleID=0&type=$typeKey", '', $class ? true : false), " " . $typeName, '', "class='$class' data-app='{$this->app->openApp}'"); + $html .= html::a(helper::createLink('doc', 'create', "objectType=$objectType&objectID=$objectID&libID=$libID&moduleID=0&type=$typeKey", '', $class ? true : false), " " . $typeName, '', "class='$class' data-app='{$this->app->openApp}'"); $html .= "
  • "; if($typeKey == 'url') $html .= '
  • '; } @@ -1742,7 +1742,7 @@ class docModel extends model if(common::hasPriv('doc', 'createLib')) { $html .= '
  • '; - $html .= '
  • ' . html::a(helper::createLink('doc', 'createLib', "type=$objectType&objectID=$objectID"), " " . $this->lang->doc->createLib, '', "class='iframe' data-width='70%'") . '
  • '; + $html .= '
  • ' . html::a(helper::createLink('doc', 'createLib', "type=$objectType&objectID=$objectID"), " " . $this->lang->doc->createLib, '', "class='iframe' data-width='70%'") . '
  • '; } $html .= ""; } diff --git a/module/doc/view/tablecontents.html.php b/module/doc/view/tablecontents.html.php index b3a791fea9..81a1445c85 100644 --- a/module/doc/view/tablecontents.html.php +++ b/module/doc/view/tablecontents.html.php @@ -90,7 +90,7 @@ if(empty($type)) $type = 'product'; $icon = zget($this->config->doc->iconList, $typeKey); $class = strpos($this->config->doc->officeTypes, $typeKey) !== false ? 'iframe' : ''; $html .= "
  • "; - $html .= html::a(helper::createLink('doc', 'create', "objectType=$type&objectID=$objectID&libID=$libID&moduleID=0&type=$typeKey", '', $class ? true : false), " " . $typeName, '', "class='$class' data-app='{$this->app->openApp}'"); + $html .= html::a(helper::createLink('doc', 'create', "objectType=$type&objectID=$objectID&libID=$libID&moduleID=0&type=$typeKey", '', $class ? true : false), " " . $typeName, '', "class='$class' data-app='{$this->app->openApp}'"); $html .= "
  • "; if($typeKey == 'url') $html .= '
  • '; }