From: Vincent Vanwaelscappel Date: Thu, 6 Oct 2022 17:01:45 +0000 (+0200) Subject: wait #5512 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7db1811091069fd17a030f3e8e2f821ca7e957e3;p=fluidbook-toolbox.git wait #5512 @0.5 --- diff --git a/app/Jobs/FluidbookImagesPreprocess.php b/app/Jobs/FluidbookImagesPreprocess.php index da1982201..ae2c7ba7e 100644 --- a/app/Jobs/FluidbookImagesPreprocess.php +++ b/app/Jobs/FluidbookImagesPreprocess.php @@ -93,7 +93,6 @@ class FluidbookImagesPreprocess extends Base { $c = $this->book->composition[$page]; $doc = $this->book->getDocument($page); - $doc->clearFilesCache(); $job = new FluidbookDocumentFileProcess($doc, $c[1], $format, $resolution, $withText, $withGraphics, $version); if ($job->isDone()) { return; diff --git a/resources/linkeditor/js/linkeditor.utils.js b/resources/linkeditor/js/linkeditor.utils.js index e2430cc29..3c7023a2e 100644 --- a/resources/linkeditor/js/linkeditor.utils.js +++ b/resources/linkeditor/js/linkeditor.utils.js @@ -17,8 +17,11 @@ LinkeditorUtils.prototype = { }, splitPages: function (str) { - str = str.toString(); let res = []; + if(str===undefined || str===null){ + return res; + } + str = str.toString(); if (str == '') { return res; }