X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/8c7e44938a661e035f62840e1e177353240ace5d..de998cce754a73341988441034e2649f3ded6c54:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index 98fd7b2b8..4c630f119 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -2213,6 +2213,20 @@ sub _get_simple { $main::lxdebug->leave_sub(); } +sub _get_groups { + $main::lxdebug->enter_sub(); + + my ($self, $dbh, $key) = @_; + + $key ||= "all_groups"; + + my $groups = $main::auth->read_groups(); + + $self->{$key} = selectall_hashref_query($self, $dbh, $query); + + $main::lxdebug->leave_sub(); +} + sub get_lists { $main::lxdebug->enter_sub(); @@ -2311,6 +2325,10 @@ sub get_lists { $self->_get_warehouses($dbh, $params{warehouses}); } + if ($params{groups}) { + $self->_get_groups($dbh, $params{groups}); + } + $main::lxdebug->leave_sub(); }