* Optimize code.

This commit is contained in:
mayue
2022-03-25 14:21:22 +08:00
parent 6f3071f217
commit 59af75b136

View File

@@ -298,6 +298,7 @@ class productplan extends control
$viewType = $this->cookie->viewType ? $this->cookie->viewType : 'list';
$this->commonAction($productID, $branch);
$product = $this->product->getById($productID);
$productName = empty($product) ? '' : $product->name;
$branchList = $this->branch->getList($productID, 0, 'all');
$branchStatusList = array();