From dc12a2afe410a44bb9e19c091952af95c70bcfc3 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 1 Dec 2014 17:06:57 +0000 Subject: [PATCH] Fix auto-selection of last used app --- etemplate/js/et2_widget_link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_link.js b/etemplate/js/et2_widget_link.js index c56b353539..5ef21b8b9b 100644 --- a/etemplate/js/et2_widget_link.js +++ b/etemplate/js/et2_widget_link.js @@ -765,7 +765,7 @@ var et2_link_entry = et2_inputWidget.extend( { this.options.value.app = egw.preference('link_app',this.options.value.to_app || this.egw().getAppName()); // If there's no value set for app, then take the first one from the selectbox - if (typeof this.options.value.app == 'undefined' || this.options.value.app) + if (typeof this.options.value.app == 'undefined' || !this.options.value.app) { this.options.value.app = Object.keys(this.options.select_options)[0]; }