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

This commit is contained in:
xieqiyu
2025-03-20 09:55:32 +08:00
committed by 代婷婷
parent f0f1c573a5
commit fb2c2c62f9
4 changed files with 20 additions and 7 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ formPanel
(
set::name('parent'),
set::items($modalType != 'chapter' ? array(0 => '/') + $chapterAndDocs : $chapterAndDocs),
!$isCreate ? set::value(!empty($doc->parent) ? $doc->parent : "m_{$doc->module}") : null,
set::value(!empty($doc->parent) ? $doc->parent : ($moduleID ? "m_$moduleID" : "m_{$doc->module}")),
set::required(true)
),
) : null,