* [bug#57000,done,0.3h] Check if the flow variable exists.

This commit is contained in:
hufangzhou
2024-11-14 09:57:42 +08:00
committed by 谢杞钰
parent 690f2d266b
commit e8edf28c3d
+2 -2
View File
@@ -491,7 +491,7 @@ class datatableModel extends model
foreach(array_unique($groupIdList) as $groupID)
{
$flow = $this->workflow->getByModule($module, false, $groupID);
if(empty($flow)) countinue;
if(empty($flow)) continue;
if($flow->buildin)
{
@@ -516,6 +516,6 @@ class datatableModel extends model
$fields = $this->workflowaction->getPageFields($module, $method, true, array(), 0, $groupID);
}
return $this->loadModel('flow')->buildDtableCols($fields, [], [], !$flow->buildin);
return $this->loadModel('flow')->buildDtableCols($fields, [], [], isset($flow) && !$flow->buildin);
}
}