Commit 62c36ab4d5cb4aa452f838d328288449e9d6e6c6

Authored by Megan
1 parent d5f0f16d

KTS-4108 - Document object needs to be refreshed after the triggers have been ru…

…n, before updating the permissions.
"CLONE -Error in Custom numbering with dynamic conditions (SUP-1610)"
Fixed.

Committed by: Megan Watson
Reviewed by: Kevin Cyster
lib/documentmanagement/documentutil.inc.php
... ... @@ -750,6 +750,7 @@ $sourceDocument->getName(),
750 750 return $ret;
751 751 }
752 752 }
  753 + // refresh the document object
753 754  
754 755 // NEW SEARCH
755 756  
... ... @@ -788,6 +789,9 @@ $sourceDocument->getName(),
788 789  
789 790 DBUtil::commit();
790 791  
  792 + // update document object with additional fields / data from the triggers
  793 + $oDocument = Document::get($oDocument->iId);
  794 +
791 795 $oUploadChannel->sendMessage(new KTUploadGenericMessage(_kt('Checking permissions...')));
792 796  
793 797 // Check if there are any dynamic conditions / permissions that need to be updated on the document
... ...