* Fix bug #22520
This commit is contained in:
@@ -187,7 +187,7 @@ class dao extends baseDAO
|
|||||||
*/
|
*/
|
||||||
public function checkflow()
|
public function checkflow()
|
||||||
{
|
{
|
||||||
global $app, $config;
|
global $app, $config, $lang;
|
||||||
|
|
||||||
if(!isset($config->bizVersion)) return $this;
|
if(!isset($config->bizVersion)) return $this;
|
||||||
|
|
||||||
@@ -204,6 +204,9 @@ class dao extends baseDAO
|
|||||||
$rawrules = $this->dbh->query("select * from " . TABLE_WORKFLOWRULE)->fetchall();
|
$rawrules = $this->dbh->query("select * from " . TABLE_WORKFLOWRULE)->fetchall();
|
||||||
foreach($rawrules as $rule) $rules[$rule->id] = $rule;
|
foreach($rawrules as $rule) $rules[$rule->id] = $rule;
|
||||||
|
|
||||||
|
$table = strtolower(str_replace(array($config->db->prefix, '`'), '', $this->table));
|
||||||
|
if(!isset($lang->$table)) $lang->$table = new stdclass();
|
||||||
|
|
||||||
foreach($flowfields as $key => $field)
|
foreach($flowfields as $key => $field)
|
||||||
{
|
{
|
||||||
if(!$field)
|
if(!$field)
|
||||||
@@ -212,6 +215,8 @@ class dao extends baseDAO
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$lang->$table->{$field->field} = $field->name;
|
||||||
|
|
||||||
$ruleids = explode(',', trim($field->rules, ',') . ',' . trim($field->layoutrules, ','));
|
$ruleids = explode(',', trim($field->rules, ',') . ',' . trim($field->layoutrules, ','));
|
||||||
$ruleids = array_unique($ruleids);
|
$ruleids = array_unique($ruleids);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user