From 61f5cbbe5566e0b1ef047a01f5e6fd7a45ae5549 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 16 Apr 2012 23:02:38 +0000 Subject: [PATCH] Handling of array value with just IDs, if app is restricted --- etemplate/js/et2_widget_link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_link.js b/etemplate/js/et2_widget_link.js index bdeb1717b4..e0069288f5 100644 --- a/etemplate/js/et2_widget_link.js +++ b/etemplate/js/et2_widget_link.js @@ -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) { - this._add_link(_value[i]); + this._add_link(_value.id ? _value : {id:_value[i], app: _value.to_app}); } } }