From 730620bf94ce0868dc57cc52fa26a3a6bdf2d042 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 9 Aug 2019 09:55:44 +0300 Subject: [PATCH] [DE] Fix Bug 42323 --- .../main/app/view/WatermarkSettingsDialog.js | 2 +- build/documenteditor.json | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/apps/documenteditor/main/app/view/WatermarkSettingsDialog.js b/apps/documenteditor/main/app/view/WatermarkSettingsDialog.js index 495ef6850..e0583d77a 100644 --- a/apps/documenteditor/main/app/view/WatermarkSettingsDialog.js +++ b/apps/documenteditor/main/app/view/WatermarkSettingsDialog.js @@ -464,7 +464,7 @@ define(['text!documenteditor/main/app/template/WatermarkSettings.template', data.push({value: item}); }); this.cmbText.setData(data); - this.cmbText.setValue(data[0].value); + (data.length>0) && this.cmbText.setValue(data[0].value); }, insertFromUrl: function() { diff --git a/build/documenteditor.json b/build/documenteditor.json index 50a89586e..0bdc55f0a 100644 --- a/build/documenteditor.json +++ b/build/documenteditor.json @@ -145,6 +145,12 @@ "cwd": "../apps/documenteditor/main/locale/", "src": "*", "dest": "../deploy/web-apps/apps/documenteditor/main/locale/" + }, + { + "expand": true, + "cwd": "../apps/documenteditor/main/resources/watermark", + "src": "*", + "dest": "../deploy/web-apps/apps/documenteditor/main/resources/watermark" } ], "help": [ @@ -389,10 +395,10 @@ "copy": { "localization": [ { - "expand": true, - "cwd": "../apps/documenteditor/embed/locale/", - "src": "*", - "dest": "../deploy/web-apps/apps/documenteditor/embed/locale/" + "expand": true, + "cwd": "../apps/documenteditor/embed/locale/", + "src": "*", + "dest": "../deploy/web-apps/apps/documenteditor/embed/locale/" } ], "index-page": {