* [bug#60364] Set parent and moudle when select module.

This commit is contained in:
xieqiyu
2025-03-20 08:54:29 +08:00
committed by 王于听
parent 1757c15f16
commit 277f6a75bb
2 changed files with 22 additions and 18 deletions
+3 -10
View File
@@ -86,20 +86,13 @@ formPanel
(
set::width('1/2'),
set::label($lang->doc->module),
$modalType == 'doc' && !$parentID && empty($doc->parent) ? picker
(
set::name('module'),
set::items($optionMenu),
set::value($moduleID),
set::required(true)
) : null,
($modalType == 'doc' && $parentID) || !empty($doc->parent) ? picker
picker
(
set::name('parent'),
set::items($chapterAndDocs),
set::items($modalType != 'chapter' ? array(0 => '/') + $chapterAndDocs : $chapterAndDocs),
set::value(!empty($doc->parent) ? $doc->parent : $parentID),
set::required(true)
) : null,
),
) : null,
$objectType !== 'mine' && $modalType != 'chapter' ? formGroup
(