* Fix project::edit bug.
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user