diff options
author | Mark Wells <mark@freeside.biz> | 2014-04-08 00:43:38 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-04-08 00:43:38 -0700 |
commit | 16ad05fd89afe8edb0e1e66098595796cb646200 (patch) | |
tree | 7448da08aa8a883c8dd2ab178f1a398f4edd6d76 | |
parent | ffe6bd1fdb564acf65202693c5fdb4535112da07 (diff) |
fix date line on plain text invoices, #28271
-rw-r--r-- | FS/FS/Template_Mixin.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm index 131a23643..426386b86 100644 --- 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 ), + # workaround for inconsistent behavior in the early plain text + # templates; see RT#28271 '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, |