X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/8084ef359515031ec8429b49baf0ab09858f55d2..8add0ccd27ab0ff17256b74dccd1f761c0d09182:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index b21f94c71..a5c2abec9 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -2968,6 +2968,9 @@ sub create_links { $self->{$key} = $ref->{$key}; } + # remove any trailing whitespace + $self->{currency} =~ s/\s*$//; + my $transdate = "current_date"; if ($self->{transdate}) { $transdate = $dbh->quote($self->{transdate}); @@ -3144,6 +3147,9 @@ sub lastname_used { map { $self->{$_} = $ref->{$_} } values %column_map; + # remove any trailing whitespace + $self->{currency} =~ s/\s*$// if $self->{currency}; + $main::lxdebug->leave_sub(); }