Index: lams_central/web/includes/javascript/authoring/authoringGeneral.js =================================================================== diff -u -rc6701c9cd8e4f0ac1dfc8ff90a611492ec689e9b -rf2051d168949fd1bfc8c6277799f1ef2be31301e --- lams_central/web/includes/javascript/authoring/authoringGeneral.js (.../authoringGeneral.js) (revision c6701c9cd8e4f0ac1dfc8ff90a611492ec689e9b) +++ lams_central/web/includes/javascript/authoring/authoringGeneral.js (.../authoringGeneral.js) (revision f2051d168949fd1bfc8c6277799f1ef2be31301e) @@ -1,4 +1,4 @@ -/** +/** * This file contains main methods for Authoring. */ @@ -2657,9 +2657,10 @@ // show the thumbnail $('#ldScreenshotAuthor', layout.ldStoreDialog).html(response).show(); }, + // the LD SVG is missing, try to re-generate it error : function(error) { - // the LD SVG is missing, try to re-generate it; if it is an another error, fail - if (error.status != 404) { + // skip re-generate if it is an another error or generated SVG is empty + if ((error.status != 404) || (MenuLib.exportSVG() === undefined)) { return; } // iframe just to load another instance of Authoring for a single purpose, generate the SVG