mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
fix different attribute-name on server- and client-side: data_format
has to be changed in customfields too
This commit is contained in:
parent
74e2a2e2bc
commit
fd662a266b
@ -300,11 +300,11 @@ class Customfields extends Transformer
|
|||||||
case 'date-time':
|
case 'date-time':
|
||||||
if (!empty($field['values']['format']))
|
if (!empty($field['values']['format']))
|
||||||
{
|
{
|
||||||
$widget->attrs['dataformat'] = $field['values']['format'];
|
$widget->attrs['data_format'] = $field['values']['format'];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$widget->attrs['dataformat'] = $type == 'date' ? 'Y-m-d' : 'Y-m-d H:i:s';
|
$widget->attrs['data_format'] = $type == 'date' ? 'Y-m-d' : 'Y-m-d H:i:s';
|
||||||
}
|
}
|
||||||
if($field['values']['min']) $widget->attrs['min'] = $field['values']['min'];
|
if($field['values']['min']) $widget->attrs['min'] = $field['values']['min'];
|
||||||
if($field['values']['max']) $widget->attrs['min'] = $field['values']['max'];
|
if($field['values']['max']) $widget->attrs['min'] = $field['values']['max'];
|
||||||
|
Loading…
Reference in New Issue
Block a user