From a02d92dee303b1eb4e442442b4c7cf77b74df1e0 Mon Sep 17 00:00:00 2001 From: Megan Watson Date: Tue, 21 Apr 2009 09:16:36 +0200 Subject: [PATCH] KTC-709 The export code was not being created, so the checkout didn't know how to find the download. "The user is allowed to checkout a document that he already has checked out with the bulk actions but the process fails" --- lib/foldermanagement/compressionArchiveUtil.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/foldermanagement/compressionArchiveUtil.inc.php b/lib/foldermanagement/compressionArchiveUtil.inc.php index a4047b6..f65a61a 100644 --- a/lib/foldermanagement/compressionArchiveUtil.inc.php +++ b/lib/foldermanagement/compressionArchiveUtil.inc.php @@ -71,7 +71,11 @@ class ZipFolder { $this->sPattern = "[\*|\%|\\\|\/|\<|\>|\+|\:|\?|\||\'|\"]"; $this->sFolderPattern = "[\*|\%|\<|\>|\+|\:|\?|\||\'|\"]"; - $this->exportCode = $exportCode; + if(!empty($exportCode)){ + $this->exportCode = $exportCode; + }else{ + $this->exportCode = KTUtil::randomString(); + } // Check if the temp directory has been created and stored in session $aData = KTUtil::arrayGet($_SESSION['zipcompression'], $exportCode); -- libgit2 0.21.4