Commit a02d92dee303b1eb4e442442b4c7cf77b74df1e0
1 parent
cc0ea0ba
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" Committed by: Megan Watson
Showing
1 changed file
with
5 additions
and
1 deletions
lib/foldermanagement/compressionArchiveUtil.inc.php
| ... | ... | @@ -71,7 +71,11 @@ class ZipFolder { |
| 71 | 71 | $this->sPattern = "[\*|\%|\\\|\/|\<|\>|\+|\:|\?|\||\'|\"]"; |
| 72 | 72 | $this->sFolderPattern = "[\*|\%|\<|\>|\+|\:|\?|\||\'|\"]"; |
| 73 | 73 | |
| 74 | - $this->exportCode = $exportCode; | |
| 74 | + if(!empty($exportCode)){ | |
| 75 | + $this->exportCode = $exportCode; | |
| 76 | + }else{ | |
| 77 | + $this->exportCode = KTUtil::randomString(); | |
| 78 | + } | |
| 75 | 79 | |
| 76 | 80 | // Check if the temp directory has been created and stored in session |
| 77 | 81 | $aData = KTUtil::arrayGet($_SESSION['zipcompression'], $exportCode); | ... | ... |