* [misc] Set default value.

This commit is contained in:
daitingting
2025-03-20 09:47:14 +08:00
committed by 谢杞钰
parent 10e57f2dd9
commit b24c482f1e
+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 : "m_{$doc->module}"),
!$isCreate ? set::value(!empty($doc->parent) ? $doc->parent : "m_{$doc->module}") : null,
set::required(true)
),
) : null,