X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/db7c3a525af246d3373e63b4e8b5b7edc82b0a9f..80b36869dd9b1ff2ed9063fabe79ca5001dc276e:/SL/Form.pm?ds=inline diff --git a/SL/Form.pm b/SL/Form.pm index 6226017f2..a1bb2b1f3 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(); }