fix for #1430 (subscription add fails)

due to us date format not properly set

Signed-off-by: Chris Cormack <crc@liblime.com>
This commit is contained in:
Paul POULAIN 2007-10-02 22:30:06 +02:00 committed by Chris Cormack
parent e343e8a151
commit 2fb2db5691
2 changed files with 7 additions and 5 deletions

View file

@ -895,7 +895,7 @@ window.onload = irregular_order();
<script type="text/javascript">
Calendar.setup({
inputField:"acqui_date",
ifFormat : "%d/%m/%Y",
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
button : "button2",
align : "Tl"
});
@ -903,7 +903,7 @@ window.onload = irregular_order();
<script type="text/javascript">
Calendar.setup({
inputField : "acqui_date",
ifFormat : "%d/%m/%Y",
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
button : "acqui_date",
align : "Tl"
});
@ -1064,7 +1064,7 @@ window.onload = irregular_order();
<script type="text/javascript">
Calendar.setup({
inputField : "beginning_date",
ifFormat : "%d/%m/%Y",
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
button : "button1",
align : "Tl"
});
@ -1072,7 +1072,7 @@ window.onload = irregular_order();
<script type="text/javascript">
Calendar.setup({
inputField : "beginning_date",
ifFormat : "%d/%m/%Y",
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
button : "beginning_date",
align : "Tl"
});

View file

@ -100,7 +100,9 @@ foreach my $thisbranch (keys %$branches) {
);
push @branchloop, \%row;
}
$template->param(branchloop => \@branchloop);
$template->param(branchloop => \@branchloop,
DHTMLcalendar_dateformat => get_date_format_string_for_DHTMLcalendar(),
);
if ($op eq 'mod'||$op eq 'dup') {
my $subscriptionid = $query->param('subscriptionid');