From 62c36ab4d5cb4aa452f838d328288449e9d6e6c6 Mon Sep 17 00:00:00 2001 From: Megan Date: Wed, 11 Mar 2009 08:58:25 +0200 Subject: [PATCH] KTS-4108 - Document object needs to be refreshed after the triggers have been run, before updating the permissions. "CLONE -Error in Custom numbering with dynamic conditions (SUP-1610)" Fixed. --- lib/documentmanagement/documentutil.inc.php | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/lib/documentmanagement/documentutil.inc.php b/lib/documentmanagement/documentutil.inc.php index 834379a..8569f3b 100644 --- a/lib/documentmanagement/documentutil.inc.php +++ b/lib/documentmanagement/documentutil.inc.php @@ -750,6 +750,7 @@ $sourceDocument->getName(), return $ret; } } + // refresh the document object // NEW SEARCH @@ -788,6 +789,9 @@ $sourceDocument->getName(), DBUtil::commit(); + // update document object with additional fields / data from the triggers + $oDocument = Document::get($oDocument->iId); + $oUploadChannel->sendMessage(new KTUploadGenericMessage(_kt('Checking permissions...'))); // Check if there are any dynamic conditions / permissions that need to be updated on the document -- libgit2 0.21.4