FIX Issue for extra fields date display in template.
Template is now consistent with the extrafiels_view template
This commit is contained in:
parent
d8d4d15b4b
commit
89d9fe3919
@ -25,7 +25,12 @@ if (! empty($extrafieldsobjectkey)) // $extrafieldsobject is the $object->table_
|
||||
$tmpkey='options_'.$key;
|
||||
if (in_array($extrafields->attributes[$extrafieldsobjectkey]['type'][$key], array('date', 'datetime', 'timestamp')))
|
||||
{
|
||||
$value = $db->jdate($obj->$tmpkey);
|
||||
$datenotinstring = $obj->$tmpkey;
|
||||
if (! is_numeric($obj->$tmpkey)) // For backward compatibility
|
||||
{
|
||||
$datenotinstring = $db->jdate($datenotinstring);
|
||||
}
|
||||
$value = $datenotinstring;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user