From 04127c8b56d2d35cee32289e4eff1c3e803d3214 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 4 Aug 2014 09:19:41 +0000 Subject: [PATCH] Backport commit 47929 committed by NathanGray, Handle if ID is not a string instead of erroring. --- phpgwapi/js/jsapi/egw_data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/egw_data.js b/phpgwapi/js/jsapi/egw_data.js index 69c6ef0a71..3c3a15b770 100644 --- a/phpgwapi/js/jsapi/egw_data.js +++ b/phpgwapi/js/jsapi/egw_data.js @@ -123,7 +123,7 @@ egw.extend("data", egw.MODULE_APP_LOCAL, function (_app, _wnd) { if (_result.order && _result.data) { // Assemble the correct order uids - if(!(_result.order.length && _result.order[0] && _result.order[0].indexOf(_context.prefix) == 0)) + if(!(_result.order.length && _result.order[0] && _result.order[0].indexOf && _result.order[0].indexOf(_context.prefix) == 0)) { for (var i = 0; i < _result.order.length; i++) {