Complement to commit 48899, fixes error in IE11

This commit is contained in:
Hadi Nategh 2014-10-07 11:39:34 +00:00
parent 7d7b4cd7bc
commit f5a71a635f

View File

@ -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();
}