mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-31 11:09:04 +01:00
Some more fixes for historylog widget
- Fix options in proper format could be interpreted as sub-widgets - Fix numeric values
This commit is contained in:
parent
12151139ff
commit
c26732a913
@ -229,6 +229,10 @@ export function cleanSelectOptions(options : SelectOption[] | string[] | object)
|
||||
for(let key in <any>options)
|
||||
{
|
||||
let option : any = options[key];
|
||||
if(typeof option === 'number')
|
||||
{
|
||||
option = "" + option;
|
||||
}
|
||||
if(typeof option === 'string')
|
||||
{
|
||||
option = {label: option};
|
||||
|
@ -420,7 +420,8 @@ export class et2_historylog extends et2_valueWidget implements et2_IDataProvider
|
||||
{
|
||||
// Require widget to be a widget, to avoid invalid widgets
|
||||
// (and template, which is a widget and an infolog todo status)
|
||||
if(et2_registry[field[j]] && ['template'].indexOf(field[j]) < 0 || customElements.get(field[j]) || typeof field[j] == "object")
|
||||
if(et2_registry[field[j]] && ['template'].indexOf(field[j]) < 0 || customElements.get(field[j]) ||
|
||||
typeof field[j] == "object" && typeof field[j].value == "undefined")
|
||||
{
|
||||
need_box = true;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user