mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Fix error if a parent key gets set as null
This commit is contained in:
parent
25f073a0b7
commit
b8a03cb6f1
@ -64,7 +64,7 @@ var et2_arrayMgr = (function(){ "use strict"; return Class.extend(
|
||||
var target = _data;
|
||||
for(var i = 0; i < indexes.length; i++) {
|
||||
indexes[i] = indexes[i].replace(/]/g,'').replace(']','');
|
||||
if(typeof target[indexes[i]] == "undefined") {
|
||||
if(typeof target[indexes[i]] == "undefined" || target[indexes[i]] === null) {
|
||||
target[indexes[i]] = i == indexes.length-1 ? value : {};
|
||||
}
|
||||
target = target[indexes[i]];
|
||||
|
Loading…
Reference in New Issue
Block a user