mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
* Api: Required numeric customfields were not displayed as required
This commit is contained in:
parent
9322eb681e
commit
f4146d6b72
@ -641,12 +641,21 @@ export class et2_customfields_list extends et2_valueWidget implements et2_IDetac
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
_setup_int(field_name, field, attrs)
|
||||
{
|
||||
delete (attrs.label);
|
||||
field.type = "number"
|
||||
attrs.precision = 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
_setup_float( field_name, field, attrs)
|
||||
{
|
||||
// No label on the widget itself
|
||||
delete(attrs.label);
|
||||
|
||||
field.type = 'float';
|
||||
field.type = 'number';
|
||||
|
||||
if(field.len)
|
||||
{
|
||||
@ -654,6 +663,7 @@ export class et2_customfields_list extends et2_valueWidget implements et2_IDetac
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
_setup_select( field_name, field, attrs)
|
||||
{
|
||||
// No label on the widget itself
|
||||
|
Loading…
Reference in New Issue
Block a user