FIX Bad format of date when updating an extrafield field date
This commit is contained in:
parent
2840487031
commit
003c758f70
1 changed files with 1 additions and 5 deletions
|
|
@ -6918,15 +6918,11 @@ abstract class CommonObject
|
|||
case 'datetime':
|
||||
if (empty($this->array_options["options_".$key])) {
|
||||
$this->array_options["options_".$key] = null;
|
||||
} else {
|
||||
$this->array_options["options_".$key] = $this->db->idate($this->array_options["options_".$key]);
|
||||
}
|
||||
break;
|
||||
case 'datetimegmt':
|
||||
if (empty($this->array_options["options_".$key])) {
|
||||
$this->array_options["options_".$key] = null;
|
||||
} else {
|
||||
$this->array_options["options_".$key] = $this->db->idate($this->array_options["options_".$key], 'gmt');
|
||||
}
|
||||
break;
|
||||
case 'boolean':
|
||||
|
|
@ -7051,7 +7047,7 @@ abstract class CommonObject
|
|||
*/
|
||||
public function updateExtraLanguages($key, $trigger = null, $userused = null)
|
||||
{
|
||||
global $conf, $langs, $user;
|
||||
global $user;
|
||||
|
||||
if (empty($userused)) {
|
||||
$userused = $user;
|
||||
|
|
|
|||
Loading…
Reference in a new issue