* Fix $product is not object bug. the bug #41172.

This commit is contained in:
wangyuting
2023-12-14 15:37:42 +08:00
parent 3a9432b136
commit 32c98fd37b
+1
View File
@@ -24,6 +24,7 @@ $projectParam = $isProjectApp ? "projectID={$this->session->project}&" : '';
$moduleID = isset($moduleID) ? (int)$moduleID : 0;
$rawMethod = $app->rawMethod;
$load = $rawMethod !== 'browse' ? null : 'table';
$product = is_bool($product) ? new stdclass() : $product;
$canModify = common::canModify('product', $product);
$canSwitchCaseType = $this->app->tab == 'qa';