From 9fa58e1b0d129470537be4808bf5d40f7c0047d9 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 4 Apr 2007 09:36:32 +0000 Subject: [PATCH] Weitere Unterfunktion zu Form::get_lists() zum Auslesen von Kunden-/Lieferantentypen. --- SL/Form.pm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/SL/Form.pm b/SL/Form.pm index d6c7e2c00..aebac40dc 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1622,6 +1622,18 @@ sub _get_employees { $main::lxdebug->leave_sub(); } +sub _get_business_types { + $main::lxdebug->enter_sub(); + + my ($self, $dbh, $key) = @_; + + $key = "all_business_types" unless ($key); + $self->{$key} = + selectall_hashref_query($self, $dbh, qq|SELECT * FROM business|); + + $main::lxdebug->leave_sub(); +} + sub get_lists { $main::lxdebug->enter_sub(); @@ -1664,6 +1676,10 @@ sub get_lists { $self->_get_employees($dbh, $params{"employees"}); } + if ($params{"business_types"}) { + $self->_get_business_types($dbh, $params{"business_types"}); + } + $dbh->disconnect(); $main::lxdebug->leave_sub(); -- 2.20.1