mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Fix placeholder sub-groups were not showing
This commit is contained in:
parent
6c389419b0
commit
c617dfe080
@ -323,22 +323,23 @@ export class et2_placeholder_select extends et2_inputWidget
|
|||||||
// Handle groups of groups
|
// Handle groups of groups
|
||||||
if(typeof et2_placeholder_select.placeholders[appname][key].label !== "undefined")
|
if(typeof et2_placeholder_select.placeholders[appname][key].label !== "undefined")
|
||||||
{
|
{
|
||||||
options[key] = et2_placeholder_select.placeholders[appname][key];
|
options.push({label:key, value: et2_placeholder_select.placeholders[appname][key]});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
options[this.egw().lang(key)] = [];
|
let a = {label: key, value:[]};
|
||||||
for(let sub of Object.keys(et2_placeholder_select.placeholders[appname][key]))
|
for(let sub of Object.keys(et2_placeholder_select.placeholders[appname][key]))
|
||||||
{
|
{
|
||||||
if(!et2_placeholder_select.placeholders[appname][key][sub])
|
if(!et2_placeholder_select.placeholders[appname][key][sub])
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
options[this.egw().lang(key)].push({
|
a.value.push({
|
||||||
value: key + '-' + sub,
|
value: key + '-' + sub,
|
||||||
label: this.egw().lang(sub)
|
label: this.egw().lang(sub)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
options.push(a);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user