mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-14 02:18:31 +02:00
Get customfield-type working again
This commit is contained in:
@ -40,14 +40,14 @@ var et2_arrayMgr = Class.extend({
|
||||
}
|
||||
|
||||
// Expand sub-arrays that have been shmushed together, so further perspectives work
|
||||
// Shmushed keys look like: ${row}[info_cat]
|
||||
// Shmushed keys look like: ${row}[info_cat]
|
||||
// Expanded: ${row}: Object{info_cat: ..value}
|
||||
if (this.splitIds)
|
||||
{
|
||||
// For each index, we need a key: {..} sub array
|
||||
for(var key in _data) {
|
||||
// Split up indexes
|
||||
var indexes = key.split('[');
|
||||
var indexes = key.replace('[','[').split('[');
|
||||
|
||||
// Put data in the proper place
|
||||
if(indexes.length > 1)
|
||||
@ -55,7 +55,7 @@ var et2_arrayMgr = Class.extend({
|
||||
var value = _data[key];
|
||||
var target = _data;
|
||||
for(var i = 0; i < indexes.length; i++) {
|
||||
indexes[i] = indexes[i].replace(']','');
|
||||
indexes[i] = indexes[i].replace(']','').replace(']','');
|
||||
if(typeof target[indexes[i]] == "undefined") {
|
||||
target[indexes[i]] = i == indexes.length-1 ? value : {};
|
||||
}
|
||||
|
Reference in New Issue
Block a user