From b7229cdcdff0b12134e75d9e2ffa2e5b084e1c91 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 6 Oct 2014 15:47:22 +0000 Subject: [PATCH] Make sure options are available before getting access to its properties --- 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 5fcf8cea5b..68943f1a9e 100644 --- a/etemplate/js/et2_widget_link.js +++ b/etemplate/js/et2_widget_link.js @@ -768,7 +768,7 @@ var et2_link_entry = et2_inputWidget.extend( }, getValue: function() { - var value = this.options && this.options.only_app ? this.options.value.id : this.options.value || null; + var value = this.options && this.options.only_app ? this.options.value.id : this.options? this.options.value: null; if(!this.options.only_app && this.search) { value.search = this.search.val();