X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b8fa93b5d2cfff453fd8a82206d1a288407a8be6..bca91008eddc6a1734a75fcd555f10d1c8ac65f6:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index e5b1e7459..bf126cb55 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -115,11 +115,6 @@ sub new { return $self; } -sub read_cgi_input { - my ($self) = @_; - SL::Request::read_cgi_input($self); -} - sub _flatten_variables_rec { $main::lxdebug->enter_sub(2); @@ -1881,6 +1876,12 @@ sub add_shipto { return if !$shipto; + # shiptocp_gender only makes sense, if any other shipto attribute is set. + # Because shiptocp_gender is set to 'm' by default in forms + # it must not be considered above to decide if shiptos has to be added or + # updated, but must be inserted or updated as well in case. + push(@values, $self->{shiptocp_gender}); + my $shipto_id = $self->{shipto_id}; if ($self->{shipto_id}) {