Handling of array value with just IDs, if app is restricted

This commit is contained in:
Nathan Gray 2012-04-16 23:02:38 +00:00
parent 4ab0a5a30d
commit 61f5cbbe55

View File

@ -860,7 +860,7 @@ var et2_link_string = et2_valueWidget.extend([et2_IDetachedDOM], {
{ {
if(!this.options.only_app || this.options.only_app && _value[i].app == this.options.only_app) if(!this.options.only_app || this.options.only_app && _value[i].app == this.options.only_app)
{ {
this._add_link(_value[i]); this._add_link(_value.id ? _value : {id:_value[i], app: _value.to_app});
} }
} }
} }