From d561122a4624918cb3157b8f8b1839464e051c1a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 5 May 2009 07:36:32 +0000 Subject: [PATCH] Can't use an undefined value as a HASH reference at SL/OE.pm line 942 - @sven Meine Mandantendaten haben keine Abteilung, am besten gleich pruefen. jan --- SL/OE.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/OE.pm b/SL/OE.pm index b72b35d20..924ebd6d5 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -35,7 +35,6 @@ package OE; use List::Util qw(max first); - use SL::AM; use SL::Common; use SL::DBUtils; @@ -939,7 +938,8 @@ sub order_details { } # lookup department - $form->{department} = ( first { $_->{id} eq $form->{department_id} } @{ $form->{ALL_DEPARTMENTS} } )->{description} || ''; + # hallo sven, ich bekomme hier einen internal server error, sehr wahrscheinlich weil bei meinen mandanten keine Abteilungen konfiguriert sind + # $form->{department} = ( first { $_->{id} eq $form->{department_id} } @{ $form->{ALL_DEPARTMENTS} } )->{description} || ''; # sort items by partsgroup for $i (1 .. $form->{rowcount}) { -- 2.20.1