Bugfix: selectall_HASHREF!
authorSven Schöling <s.schoeling@linet-services.de>
Thu, 3 Sep 2009 13:40:21 +0000 (15:40 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 3 Sep 2009 13:40:21 +0000 (15:40 +0200)
SL/OE.pm

index ce8c928..df634af 100644 (file)
--- a/SL/OE.pm
+++ b/SL/OE.pm
@@ -976,8 +976,8 @@ sub retrieve_simple {
   my $oe_query    = qq|SELECT * FROM oe         WHERE id = ?|;
   my $oi_query    = qq|SELECT * FROM orderitems WHERE trans_id = ?|;
 
-  my ($order)          = selectall_array_query($form, $dbh, $oe_query, conv_i($params{id}));
-  $order->{orderitems} = selectall_array_query($form, $dbh, $oi_query, conv_i($params{id}));
+  my $order            = selectfirst_hashref_query($form, $dbh, $oe_query, conv_i($params{id}));
+  $order->{orderitems} = selectall_hashref_query(  $form, $dbh, $oi_query, conv_i($params{id}));
 
   $main::lxdebug->leave_sub();