Only run value through format_date if no render_func was called before

pull/1/head
thomascube 12 years ago
parent 479af90579
commit c388257078

@ -616,9 +616,10 @@ function rcmail_contact_form($form, $record, $attrib = null)
if ($colprop['subtypes'] || $colprop['limit'] != 1)
$colprop['array'] = true;
// load jquery UI datepickert for date fields
// load jquery UI datepicker for date fields
if ($colprop['type'] == 'date') {
$colprop['class'] .= ($colprop['class'] ? ' ' : '') . 'datepicker';
if (!$colprop['render_func'])
$val = rcmail_format_date_col($val);
}

Loading…
Cancel
Save