* Fix browseTask of tree.

This commit is contained in:
朱金勇
2023-06-21 07:39:49 +00:00
parent 605f8f16eb
commit e6e6bb3c30
4 changed files with 43 additions and 11 deletions
+29
View File
@@ -18,6 +18,28 @@ foreach($sons as $son)
{
if($son->order > $maxOrder) $maxOrder = $son->order;
if($newModule and !$productID)
{
foreach($products as $product)
{
$moduleRows[] = formRow
(
formGroup
(
setClass('row-module'),
input
(
setClass('col-module'),
set::name("products[id$product->id]"),
set::type('input'),
set::value($product->name),
set::disabled(true),
),
)
);
}
}
$moduleRows[] = formRow
(
formGroup
@@ -78,6 +100,13 @@ for($i = 0; $i < \tree::NEW_CHILD_COUNT; $i ++)
set::value(''),
set::placeholder($lang->tree->short),
),
input
(
setClass('hidden'),
set::name("branch[$i]"),
set::value(0),
set::control('hidden'),
),
),
batchActions(),
),