* [bug#57000,done,0.3h] Check if the flow variable exists.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user