* Fix bug #42232.
This commit is contained in:
@@ -1646,6 +1646,7 @@ class executionModel extends model
|
||||
foreach($executions as $execution)
|
||||
{
|
||||
$execution->productName = isset($productList[$execution->id]) ? trim($productList[$execution->id]->productName, ',') : '';
|
||||
$execution->product = $productID;
|
||||
if($execution->end) $execution->end = date(DT_DATE1, strtotime($execution->end));
|
||||
|
||||
if(isset($executions[$execution->parent])) $executions[$execution->parent]->isParent = 1;
|
||||
|
||||
@@ -527,7 +527,7 @@ class programplanModel extends model
|
||||
|
||||
/* Check weather need to set code and compute same code. */
|
||||
$setCode = isset($this->config->setCode) && $this->config->setCode == 1;
|
||||
$sameCodes = $setCode ? $this->checkCodeUnique($codes, isset($planIDList) ? $planIDList : '') : false;
|
||||
$sameCodes = $setCode ? $this->checkCodeUnique($code, isset($planIDList) ? $planIDList : '') : false;
|
||||
|
||||
/* Prepare the plans user inputted. Process the plan which names not empty only. */
|
||||
$project = $this->loadModel('project')->getByID($projectID);
|
||||
|
||||
Reference in New Issue
Block a user