* Code for bug#17503.

This commit is contained in:
xieqiyu
2021-12-14 15:47:19 +08:00
parent ed9eedf543
commit a978d41365
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -224,7 +224,7 @@ class productplan extends control
$this->session->set('productPlanList', $this->app->getURI(true), 'product');
$this->commonAction($productID, $branch);
$product = $this->loadModel('product')->getById($productID);
$product = $this->product->getById($productID);
$productName = empty($product) ? '' : $product->name;
$this->view->title = $productName . $this->lang->colon . $this->lang->productplan->browse;
+1 -1
View File
@@ -139,7 +139,7 @@
if($product->type != 'normal')
{
$branchStatus = $this->branch->getByID($plan->branch, 0, 'status');
$disabled = $branchStatus == 'closed' ? 'disabled' : '';
if($branchStatus == 'closed') $disabled = 'disabled';
}
if($config->systemMode == 'new')