diff options
author | thomascube <thomas@roundcube.net> | 2012-03-08 09:11:07 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2012-03-08 09:11:07 +0000 |
commit | c388257078b732bb474afa475e986ec66b01165d (patch) | |
tree | 4f3ff6876b619670cc882812c588b72d165c723e | |
parent | 479af90579e7898ded7ed5de966ab03a3be9300a (diff) |
Only run value through format_date if no render_func was called before
-rw-r--r-- | program/steps/addressbook/func.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc index 84796baee..5a7213ca4 100644 --- a/program/steps/addressbook/func.inc +++ b/program/steps/addressbook/func.inc @@ -616,10 +616,11 @@ 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'; - $val = rcmail_format_date_col($val); + if (!$colprop['render_func']) + $val = rcmail_format_date_col($val); } $val = rcmail_get_edit_field($col, $val, $colprop, $colprop['type']); |