* [bug #60111] fix open doc-edit not work.

This commit is contained in:
sunhao
2025-03-04 21:32:35 +08:00
committed by 曹延义
parent 128c132a32
commit f17dbefeb2
+6
View File
@@ -662,6 +662,12 @@ class doc extends control
$objectID = zget($lib, $lib->type, 0);
if($lib->type == 'custom') $objectID = $lib->parent;
if($doc->type == 'text' || $doc->type == 'article')
{
echo $this->fetch('doc', 'app', "type=$objectType&spaceID=$objectID&libID=$libID&moduleID=$doc->module&docID=$docID&mode=edit");
return;
}
$libPairs = $this->doc->getLibs($lib->type, '', $doc->lib, $objectID);
list($libs, $libID, $object, $objectID, $objectDropdown) = $this->doc->setMenuByType($objectType, $objectID, (int)$doc->lib, (int)$appendLib);