From d3cde1efb43fd98fb671938c0a3c5c239da28f45 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 3 Oct 2014 16:48:48 +0000 Subject: [PATCH] Check that options are there before using. Hopefully fixes bug in IE11. --- etemplate/js/et2_widget_link.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_widget_link.js b/etemplate/js/et2_widget_link.js index a9bb5c6c4a..5fcf8cea5b 100644 --- a/etemplate/js/et2_widget_link.js +++ b/etemplate/js/et2_widget_link.js @@ -768,8 +768,8 @@ var et2_link_entry = et2_inputWidget.extend( }, getValue: function() { - var value = this.options.only_app ? this.options.value.id : this.options.value; - if(!this.options.only_app) + var value = this.options && this.options.only_app ? this.options.value.id : this.options.value || null; + if(!this.options.only_app && this.search) { value.search = this.search.val(); }