summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-10-20 13:26:46 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-11-21 22:54:21 +0000
commitc5966ed21b56f083e090a0b1b48e567383e7ee39 (patch)
treea68160b73829183841c79f470d3a57c6a42aae24
parentbe8afc2c12efcc6734ce813e12fefeb792d04867 (diff)
downloadnextcloud-server-c5966ed21b56f083e090a0b1b48e567383e7ee39.tar.gz
nextcloud-server-c5966ed21b56f083e090a0b1b48e567383e7ee39.zip
Only set value if it exists in the StorageConfig
-rw-r--r--apps/files_external/js/settings.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index 3152c644b32..e16944eaa19 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -790,8 +790,11 @@ MountConfigListView.prototype = _.extend({
if (storageConfig.backendOptions) {
$td.children().each(function() {
var input = $(this);
- input.val(storageConfig.backendOptions[input.data('parameter')]);
- highlightInput(input);
+ var val = storageConfig.backendOptions[input.data('parameter')];
+ if (val !== undefined) {
+ input.val(storageConfig.backendOptions[input.data('parameter')]);
+ highlightInput(input);
+ }
});
}