]> _ Git - fluidbook-toolbox.git/commitdiff
wait #5512 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Oct 2022 17:01:45 +0000 (19:01 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Oct 2022 17:01:45 +0000 (19:01 +0200)
app/Jobs/FluidbookImagesPreprocess.php
resources/linkeditor/js/linkeditor.utils.js

index da198220163b21d5f7943636a9ad63d394fb0447..ae2c7ba7ef5d72d2113c392bff77ba91562b5b9d 100644 (file)
@@ -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;
index e2430cc292c4d41ffc3060a2cabd6f788345f2e0..3c7023a2eee912042421b2360e42529789de40bc 100644 (file)
@@ -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;
         }