* Adjust product list.
This commit is contained in:
@@ -1368,7 +1368,7 @@ class productModel extends model
|
||||
if(empty($products)) return array();
|
||||
|
||||
$productKeys = array_keys($products);
|
||||
if($orderBy == 'program_asc')
|
||||
if($orderBy == 'program_asc' and $this->config->systemMode == 'new')
|
||||
{
|
||||
$products = $this->dao->select('t1.id as id, t1.*')->from(TABLE_PRODUCT)->alias('t1')
|
||||
->leftJoin(TABLE_PROGRAM)->alias('t2')->on('t1.program = t2.id')
|
||||
|
||||
@@ -69,6 +69,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="productTableList">
|
||||
<?php $lineNames = array();?>
|
||||
<?php foreach($productStructure as $programID => $program):?>
|
||||
<?php
|
||||
$trAttrs = "data-id='program.$programID' data-parent='0' data-nested='true'";
|
||||
@@ -86,7 +87,8 @@
|
||||
<?php endif;?>
|
||||
|
||||
<?php foreach($program as $lineID => $line):?>
|
||||
<?php if(isset($line['lineName'])):?>
|
||||
<?php if(isset($line['lineName']) and !in_array($line['lineName'], $lineNames)):?>
|
||||
<?php $lineNames[] = $line['lineName'];?>
|
||||
<?php
|
||||
if($this->config->systemMode == 'new' and $programID)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user