From aa526a3225c908af43df7caf70a059893c973e73 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 19 Dec 2014 22:14:54 +0000 Subject: [PATCH] Fix bug where clearing the entered value would lose the selected application --- 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 b355505ee1..09f1e122ce 100644 --- a/etemplate/js/et2_widget_link.js +++ b/etemplate/js/et2_widget_link.js @@ -811,7 +811,7 @@ var et2_link_entry = et2_inputWidget.extend( this.clear.hide(); this.options.value = _value = {'id':null}; } - if(!_value.app) _value.app = this.options.only_app; + if(!_value.app) _value.app = this.options.only_app || this.app_select.val(); if(_value.id) { // Remove specific display and revert to CSS file