* [bug#60364] Set parent when edit doc.

This commit is contained in:
xieqiyu
2025-03-20 10:12:46 +08:00
committed by 代婷婷
parent 91a9d41e59
commit 632d92ce38
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ formPanel
(
set::name('parent'),
set::items($modalType != 'chapter' ? array(0 => '/') + $chapterAndDocs : $chapterAndDocs),
set::value(!empty($doc->parent) ? $doc->parent : ($moduleID ? "m_$moduleID" : "m_{$doc->module}")),
set::value($parentID ? $parentID : ($moduleID ? "m_$moduleID" : 0)),
set::required(true)
),
) : null,