From ae2c117104763d8cf683dcde6f8a7fec00337651 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 5 Dec 2019 14:26:30 +0800 Subject: [PATCH] * finish task #6640. --- module/doc/model.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/module/doc/model.php b/module/doc/model.php index e7f37a7f37..b7485e8f8c 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -69,8 +69,13 @@ class docModel extends model if($currentLib) { - $allLibGroups = $this->getAllLibGroups($currentLib); - $currentGroups = $allLibGroups[$type]; + $allLibGroups = $this->getAllLibGroups($libID); + $currentGroups = $allLibGroups[$type]; + if(!isset($currentGroups[$currentLib]) and $type == 'project') + { + $project = $this->dao->select('id,name,status')->from(TABLE_PROJECT)->where('id')->eq($currentLib)->fetch(); + $currentGroups[$currentLib] = (array)$project; + } $currentLibName = is_array($currentGroups[$currentLib]) ? $currentGroups[$currentLib]['name'] : $currentGroups[$currentLib]; $selectHtml .= "
";