- set timestamp in tblWorkflowDocumentContent when workflow is added

This commit is contained in:
steinm 2013-02-02 15:55:24 +00:00
parent 83b0c1b253
commit 9ae27c2537

View File

@ -2846,7 +2846,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
$this->getWorkflow();
if($workflow && is_object($workflow)) {
$initstate = $workflow->getInitState();
$queryStr = "INSERT INTO tblWorkflowDocumentContent (workflow, document, version, state) VALUES (". $workflow->getID(). ", ". $this->_document->getID() .", ". $this->_version .", ".$initstate->getID().")";
$queryStr = "INSERT INTO tblWorkflowDocumentContent (workflow, document, version, state, date) VALUES (". $workflow->getID(). ", ". $this->_document->getID() .", ". $this->_version .", ".$initstate->getID().", CURRENT_TIMESTAMP)";
if (!$db->getResult($queryStr)) {
return false;
}