fix sql statement to retrieve workflow log

This commit is contained in:
Uwe Steinmann 2018-04-05 12:21:09 +02:00
parent 8ea8c0086e
commit f1fb23c7e7

View File

@ -6080,7 +6080,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
}
if($this->_workflow)
$queryStr .= " AND `a`.`workflowdocumentcontent` = ".$this->_workflow['id'];
$queryStr .= " ORDER BY `date`";
$queryStr .= " ORDER BY `a`.`date`";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && !$resArr)
return false;