mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 17:19:06 +01:00
* Infolog - Fix merging empty custom date fields filled them with current date
This commit is contained in:
parent
189de3ddda
commit
9bfe20b008
@ -114,7 +114,7 @@ class infolog_merge extends Api\Storage\Merge
|
|||||||
$array['#'.$name] = '';
|
$array['#'.$name] = '';
|
||||||
}
|
}
|
||||||
// Format date cfs per user Api\Preferences
|
// Format date cfs per user Api\Preferences
|
||||||
if($field['type'] == 'date' || $field['type'] == 'date-time')
|
if($array['#'.$name] && ($field['type'] == 'date' || $field['type'] == 'date-time'))
|
||||||
{
|
{
|
||||||
$this->date_fields[] = '#'.$name;
|
$this->date_fields[] = '#'.$name;
|
||||||
$array['#'.$name] = Api\DateTime::to($array['#'.$name], $field['type'] == 'date' ? true : '');
|
$array['#'.$name] = Api\DateTime::to($array['#'.$name], $field['type'] == 'date' ? true : '');
|
||||||
|
Loading…
Reference in New Issue
Block a user