projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9931b2e
)
fix date line on plain text invoices, #28271
author
Mark Wells
<mark@freeside.biz>
Tue, 8 Apr 2014 07:44:07 +0000
(
00:44
-0700)
committer
Mark Wells
<mark@freeside.biz>
Tue, 8 Apr 2014 07:44:07 +0000
(
00:44
-0700)
FS/FS/Template_Mixin.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Template_Mixin.pm
b/FS/FS/Template_Mixin.pm
index
131a236
..
426386b
100644
(file)
--- a/
FS/FS/Template_Mixin.pm
+++ b/
FS/FS/Template_Mixin.pm
@@
-485,9
+485,14
@@
sub print_generic {
'quotationnum' => $self->quotationnum,
'no_date' => $params{'no_date'},
'_date' => ( $params{'no_date'} ? '' : $self->_date ),
'quotationnum' => $self->quotationnum,
'no_date' => $params{'no_date'},
'_date' => ( $params{'no_date'} ? '' : $self->_date ),
+ # workaround for inconsistent behavior in the early plain text
+ # templates; see RT#28271
'date' => ( $params{'no_date'}
? ''
'date' => ( $params{'no_date'}
? ''
- : $self->time2str_local('long', $self->_date, $format)
+ : ($format eq 'template'
+ ? $self->_date
+ : $self->time2str_local('long', $self->_date, $format)
+ )
),
'today' => $self->time2str_local('long', $today, $format),
'terms' => $self->terms,
),
'today' => $self->time2str_local('long', $today, $format),
'terms' => $self->terms,