From 33b01975b2457ffaf6c819037a90acd104130b52 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 28 Nov 2013 20:16:33 +0000 Subject: [PATCH] Allow :: inside data UIDs --- phpgwapi/js/jsapi/egw_data.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/phpgwapi/js/jsapi/egw_data.js b/phpgwapi/js/jsapi/egw_data.js index ac75fa5770..fd76ca734b 100644 --- a/phpgwapi/js/jsapi/egw_data.js +++ b/phpgwapi/js/jsapi/egw_data.js @@ -418,9 +418,10 @@ egw.extend("data_storage", egw.MODULE_GLOBAL, function (_app, _wnd) { for (var key in localStorage) { var parts = key.split("::"); - if (parts[0] === _prefix && localStorage[key].data) + if (parts.shift() === _prefix && localStorage[key].data) { - result.push(parts[1]); + + result.push(parts.join('::')); } } @@ -501,9 +502,9 @@ egw.extend("data_storage", egw.MODULE_GLOBAL, function (_app, _wnd) { var nextmatchId = registeredCallbacks[_uid][0].widgetId; var uid = _uid.split("::"); var context = { - "prefix":uid[0] + "prefix":uid.shift() }; - uid = uid[uid.length - 1]; + uid = uid.join("::"); this.dataFetch(_execId, {'refresh':uid}, {}, nextmatchId,false, context, [uid]); return true;