Fix link-entry widgets with only_app set losing value

This commit is contained in:
Nathan Gray 2013-06-05 17:11:49 +00:00
parent a10914b20e
commit d25d2d1b98

View File

@ -496,6 +496,10 @@ var et2_link_entry = et2_inputWidget.extend(
this.app_select.hide(); this.app_select.hide();
this.div.addClass("no_app"); this.div.addClass("no_app");
} }
if(typeof self.options.value != "object")
{
self.options.value = {id: self.options.value};
}
self.options.value.app = this.app_select.val(); self.options.value.app = this.app_select.val();
// Search input // Search input