From 37671ac812d7130733711ec9568a725ea3b75119 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 24 Jul 2013 10:18:11 +0000 Subject: [PATCH] fixed handling of attributes stored in data, was depending on order or attributes to work --- phpgwapi/js/egw_action/egw_action_common.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpgwapi/js/egw_action/egw_action_common.js b/phpgwapi/js/egw_action/egw_action_common.js index 4d8db7149a..aff2cbd36e 100644 --- a/phpgwapi/js/egw_action/egw_action_common.js +++ b/phpgwapi/js/egw_action/egw_action_common.js @@ -36,7 +36,9 @@ function egwActionStoreJSON(_data, _obj, _setterOnly) } else if (_setterOnly === 'data') { - _obj.data[key] = _data[key]; + if (typeof _data.data == 'undefined') _data.data = {}; + _data.data[key] = _data[key]; + _obj.set_data(_data.data); } } }