mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 01:48:01 +02: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;
|
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)
|
_setup_float( field_name, field, attrs)
|
||||||
{
|
{
|
||||||
// No label on the widget itself
|
// No label on the widget itself
|
||||||
delete(attrs.label);
|
delete(attrs.label);
|
||||||
|
|
||||||
field.type = 'float';
|
field.type = 'number';
|
||||||
|
|
||||||
if(field.len)
|
if(field.len)
|
||||||
{
|
{
|
||||||
@ -654,6 +663,7 @@ export class et2_customfields_list extends et2_valueWidget implements et2_IDetac
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
_setup_select( field_name, field, attrs)
|
_setup_select( field_name, field, attrs)
|
||||||
{
|
{
|
||||||
// No label on the widget itself
|
// No label on the widget itself
|
||||||
|
Loading…
x
Reference in New Issue
Block a user