* Adjust the cases of all products.

This commit is contained in:
hufangzhou
2021-03-24 14:14:08 +08:00
parent fbde724d27
commit e361864ea5
9 changed files with 46 additions and 35 deletions
+2 -3
View File
@@ -67,10 +67,9 @@
<?php foreach($caseIDList as $caseID):?>
<?php
if(!isset($cases[$caseID])) continue;
if(!$productID)
if(!$productID and !$cases[$caseID]->lib)
{
$product = $this->product->getByID($cases[$caseID]->product);
$product = $this->product->getByID($cases[$caseID]->product);
$branches = $product->type == 'normal' ? array('' => '') : $this->loadModel('branch')->getPairs($product->id);
if($product->type != 'normal')
{