Commit 0bb7dc3c72debf710fbeec4d30a4cc4b9794c928

Authored by bshuttle
1 parent cf7d9cc1

keep a reason in the transaction, if present.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5973 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/documentmanagement/documentutil.inc.php
... ... @@ -907,7 +907,7 @@ class KTDocumentUtil {
907 907 return true;
908 908 }
909 909  
910   - function move($oDocument, $oToFolder, $oUser = null) {
  910 + function move($oDocument, $oToFolder, $oUser = null, $sReason) {
911 911  
912 912 $oFolder = $oToFolder; // alias.
913 913  
... ... @@ -939,11 +939,12 @@ class KTDocumentUtil {
939 939 return $res; // we failed, bail.
940 940 }
941 941  
942   - $sMoveMessage = sprintf("Moved from %s/%s to %s/%s: Workflow trigger.",
  942 + $sMoveMessage = sprintf("Moved from %s/%s to %s/%s. %s",
943 943 $oOriginalFolder->getFullPath(),
944 944 $oOriginalFolder->getName(),
945 945 $oFolder->getFullPath(),
946   - $oFolder->getName());
  946 + $oFolder->getName(),
  947 + $sReason);
947 948  
948 949 // create the document transaction record
949 950  
... ...