* [bug#56146,done,1h] fix space form in set doc basic.

This commit is contained in:
zhouxin
2024-10-18 10:11:50 +08:00
committed by 宋辰轩
parent 49b8aa9150
commit e1fa906a50
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -1568,8 +1568,7 @@ class doc extends control
$libID = (int)$doc->lib;
$lib = $this->doc->getLibByID($libID);
$objectType = $lib->type;
$objectID = (int)zget($lib, $objectType, 0);
if($objectType == 'custom') $objectID = $lib->parent;
$objectID = $objectType == 'custom' || $objectType == 'mine' ? $lib->parent : (int)zget($lib, $objectType, 0);
$libPairs = $this->doc->getLibs($objectType, '', $libID, $objectID);
if($objectType == 'custom' || $objectType == 'mine') $this->view->spaces = $this->doc->getSubSpacesByType($objectType, true);