mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 09:53:20 +01:00
Fix bug breaking array values (name ends in [])
This commit is contained in:
parent
587e3c8862
commit
5385055eb9
@ -401,7 +401,7 @@ etemplate2.prototype.getValues = function(_root)
|
||||
// Handle arrays, eg radio[]
|
||||
if(id === "")
|
||||
{
|
||||
id = typeof target == "undefined" ? 0 : _target.length;
|
||||
id = typeof _target == "undefined" ? 0 : Object.keys(_target).length;
|
||||
}
|
||||
|
||||
// Check whether the entry is really undefined
|
||||
|
Loading…
Reference in New Issue
Block a user