Merge branch 'sprint/170_mayue_16191' into 'sprint/170'

* Fix bug #16191.

See merge request easycorp/zentaopms!414
This commit is contained in:
李玉春
2021-11-11 08:19:38 +00:00
+1 -1
View File
@@ -211,7 +211,7 @@ class product extends control
$product = $this->product->getById($productID);
if($product->type != 'normal')
if($product and $product->type != 'normal')
{
$this->app->loadLang('datatable');
$this->lang->datatable->showBranch = sprintf($this->lang->datatable->showBranch, $this->lang->product->branchName[$product->type]);