From c388257078b732bb474afa475e986ec66b01165d Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Thu, 08 Mar 2012 04:11:07 -0500
Subject: [PATCH] Only run value through format_date if no render_func was called before
---
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 84796ba..5a7213c 100644
--- a/program/steps/addressbook/func.inc
+++ b/program/steps/addressbook/func.inc
@@ -616,10 +616,11 @@
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']);
--
Gitblit v1.9.1