* [refac,2h,0h] Fix common::createChanges error.

This commit is contained in:
tanghucheng
2024-07-02 10:54:30 +08:00
committed by 孙广明
parent 673308e878
commit 4954f5aff8
+2 -3
View File
@@ -813,10 +813,9 @@ class commonModel extends model
$new->subStatus = $default;
}
}
$dateFields = array();
$stmt = $dao->select('`field`')->from(TABLE_WORKFLOWFIELD)->where('`module`')->eq($moduleName)->andWhere('`control`')->in(array('data', 'datetime'));
while($row = $stmt->fetch()) $dateFields[$row->field] = $row->field;
$rows = $dao->select('`field`')->from(TABLE_WORKFLOWFIELD)->where('`module`')->eq($moduleName)->andWhere('`control`')->in(array('data', 'datetime'))->fetchAll();
foreach($rows as $row) $dateFields[$row->field] = $row->field;
}
$changes = array();