[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix email form
- Subject: [PATCH] Fix email form
- From: Erik Huelsmann <..hidden..>
- Date: Fri, 20 May 2011 22:22:41 +0200
Hi Chris,
Thanks for pointing me to the templating system as the source of the
emails which don't get sent. I've identified the offending line and
replaced it with a better line: one that merges the old and new
argument sets, giving the arguments in the new set highest priority.
This is the patch:
Index: LedgerSMB/Template.pm
===================================================================
--- LedgerSMB/Template.pm (revision 3143)
+++ LedgerSMB/Template.pm (working copy)
@@ -281,7 +281,9 @@
sub output {
my $self = shift;
my %args = @_;
- $self->{output_args} = \%args;
+
+ for ( keys %args ) { $self->{output_args}->{$_} = $args{$_}; };
+
my $method = $self->{method} || $args{method} || $args{media};
if ('email' eq lc $method) {
$self->_email_output;
Bye,
Erik.