* Adjust code style.

This commit is contained in:
tianshujie98
2020-12-28 09:02:39 +08:00
parent 33e2b79be2
commit 43aa256f8b
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -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;}
-1
View File
@@ -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] : '';