From fc66bfec632a94cbc1264aff4caae50689727872 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 1 Dec 2014 17:05:33 +0000 Subject: [PATCH] Fix auto-selection of last used app (broken r48959) --- 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 7d004a6d64..c36a253a20 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]; }