* Adjust code style.
This commit is contained in:
@@ -38,3 +38,4 @@
|
||||
th.table-nest-title .table-nest-toggle {margin-top: 15px; margin-left: 6px;}
|
||||
th.table-nest-title .header {margin-left: 5px;}
|
||||
th.table-nest-title .sort-up {padding-left: 10px;}
|
||||
th.table-nest-title .sort-down {padding-left: 10px;}
|
||||
|
||||
@@ -1218,7 +1218,6 @@ class productModel extends model
|
||||
foreach($products as $product) $programKeys[] = $product->program;
|
||||
$programs = $this->dao->select('id,name')->from(TABLE_PROGRAM)
|
||||
->where('id')->in(array_unique($programKeys))
|
||||
->andWhere('deleted')->eq('0')
|
||||
->fetchPairs();
|
||||
|
||||
foreach($products as $product) $product->programName = isset($programs[$product->program]) ? $programs[$product->program] : '';
|
||||
|
||||
Reference in New Issue
Block a user