diff --git a/etemplate/js/et2_widget_link.js b/etemplate/js/et2_widget_link.js index 68943f1a9e..134e1a85b3 100644 --- a/etemplate/js/et2_widget_link.js +++ b/etemplate/js/et2_widget_link.js @@ -769,7 +769,7 @@ var et2_link_entry = et2_inputWidget.extend( getValue: function() { 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) + if(this.options && !this.options.only_app && this.search) { value.search = this.search.val(); }