* Optimize code.

This commit is contained in:
mayue
2022-06-10 16:20:40 +08:00
parent 9b76036761
commit d72eda83d9
+1 -1
View File
@@ -920,7 +920,7 @@ class productModel extends model
foreach($oldLines as $oldLine)
{
$oldLineID = 'id' . $oldLine->id;
if($data->modules[$oldLineID] != $oldLine->name or $data->programs[$oldLineID] != $oldLine->root)
if($data->programs[$oldLineID] != $oldLine->root)
{
$product = $this->dao->select('*')->from(TABLE_PRODUCT)->where('line')->eq($oldLine->id)->fetchAll('id');
if(!empty($product)) return print(js::error($this->lang->product->changeLineError) . js::locate('parent'));