* Fix project::edit bug.

This commit is contained in:
sunguangming
2023-08-03 14:13:30 +08:00
parent 9182e2eebf
commit ae2fca5e31
3 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -14,7 +14,6 @@ $config->execution->dtable->fieldList['rawID']['required'] = true;
$config->execution->dtable->fieldList['name']['title'] = $lang->execution->name;
$config->execution->dtable->fieldList['name']['name'] = 'nameCol';
$config->execution->dtable->fieldList['name']['fixed'] = 'left';
$config->execution->dtable->fieldList['name']['flex'] = 1;
$config->execution->dtable->fieldList['name']['type'] = 'nestedTitle';
$config->execution->dtable->fieldList['name']['sortType'] = true;
$config->execution->dtable->fieldList['name']['minWidth'] = '356';
@@ -25,9 +24,9 @@ if(isset($config->setCode) and $config->setCode == 1)
{
$config->execution->dtable->fieldList['code']['title'] = $lang->execution->code;
$config->execution->dtable->fieldList['code']['name'] = 'code';
$config->execution->dtable->fieldList['code']['fixed'] = 'left';
$config->execution->dtable->fieldList['code']['type'] = 'text';
$config->execution->dtable->fieldList['code']['sortType'] = true;
$config->execution->dtable->fieldList['code']['group'] = '1';
$config->execution->dtable->fieldList['code']['width'] = '136';
$config->execution->dtable->fieldList['code']['show'] = 'true';
}
+1 -2
View File
@@ -262,11 +262,10 @@ class productModel extends model
{
$products[$product->id] = $product;
$products[$product->id]->branches = array();
$products[$product->id]->plans = array();
}
$products[$product->id]->branches[$product->branch] = $product->branch;
if($product->plan) $products[$product->id]->plans[$product->plan] = $product->plan;
if($product->plan) $products[$product->id]->plans = $product->plan;
unset($product->branch, $product->plan);
}
+2 -1
View File
@@ -105,7 +105,8 @@ if($linkedProducts)
(
set::name("plans[$product->id][]"),
set::items($plans),
set::value($product->plans)
set::value($product->plans),
set::multiple(true)
)
)
),