* Finish task #77013.
This commit is contained in:
@@ -99,7 +99,7 @@ class programModel extends model
|
||||
$productPrograms = $this->dao->select('id, name')->from(TABLE_PROJECT)->where('type')->eq('program')->andWhere('deleted')->eq('0')->fetchPairs();
|
||||
|
||||
/* Put products of current program first.*/
|
||||
if(!empty($products) and $mode != 'assign' and $programID)
|
||||
if(!empty($products) and isset($products[$programID]) and $mode != 'assign' and $programID)
|
||||
{
|
||||
$currentProgramProducts = $products[$programID];
|
||||
unset($products[$programID]);
|
||||
|
||||
Reference in New Issue
Block a user