From: Sven Schöling Date: Wed, 27 Feb 2008 14:03:04 +0000 (+0000) Subject: Bugfix: Update im Warendialog hatte die Warengruppe verschluckt. X-Git-Tag: release-2.6.0beta1~207 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2740f3f03035bd1db6d32edaceca6c413ed81496;p=kivitendo-erp.git Bugfix: Update im Warendialog hatte die Warengruppe verschluckt. --- diff --git a/SL/Form.pm b/SL/Form.pm index bded79435..067a002cf 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -2328,6 +2328,9 @@ sub get_lists { if ($params{groups}) { $self->_get_groups($dbh, $params{groups}); } + if ($params{partsgroup}) { + $self->get_partsgroup(\%main::myconfig, { all => 1, target => $params{partsgroup} }); + } $main::lxdebug->leave_sub(); } @@ -3117,6 +3120,7 @@ sub get_partsgroup { $main::lxdebug->enter_sub(); my ($self, $myconfig, $p) = @_; + my $target = $p->{target} || 'all_partsgroup'; my $dbh = $self->get_standard_dbh($myconfig); @@ -3155,7 +3159,7 @@ sub get_partsgroup { @values = ($p->{language_code}); } - $self->{all_partsgroup} = selectall_hashref_query($self, $dbh, $query, @values); + $self->{$target} = selectall_hashref_query($self, $dbh, $query, @values); $main::lxdebug->leave_sub(); } diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index f2ca8a929..ec0c58035 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -1467,7 +1467,8 @@ sub form_header { map { $form->{"is_$_"} = ($form->{item} eq $_) } qw(part service assembly); map { $form->{$_} =~ s/"/"/g; } qw(unit); - $form->get_lists('price_factors' => 'ALL_PRICE_FACTORS'); + $form->get_lists('price_factors' => 'ALL_PRICE_FACTORS', + 'partsgroup' => 'all_partsgroup'); $rows = 4 if $rows = $form->numtextrows($form->{notes}, 40) < 2; $form->{notes_rows} = $rows;