From 7db1811091069fd17a030f3e8e2f821ca7e957e3 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 6 Oct 2022 19:01:45 +0200 Subject: [PATCH] wait #5512 @0.5 --- app/Jobs/FluidbookImagesPreprocess.php | 1 - resources/linkeditor/js/linkeditor.utils.js | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.39.5