[otrs] .......... Undefined value as a HASH reference ........

Piergiovanni Gualotto piergiovanni.gualotto at primeur.com
Mon Feb 5 15:48:26 GMT 2007


in the function of the "search customer" i get the value of 
'%{$Content[0]' = ' ' and the system crash with the message "Can't use 
an undefined value as a HASH reference at Knel/System/Ticket/Article.pm 
line 1004 ".

i resolv thi error changing  the if control in the sub "ArticleGet" from:

if ($Param{ArticleID}) {         
        return %{$Content[0]};                                  
 }
    else { 
         return @Content;
    }

to :

if ($Param{ArticleID} && $Content[0] ) {         
        return %{$Content[0]};                                       
 }
    else { 
         return @Content;
    }

is correct ? is a bug ? Now when "Search customer" i get some the 
article empy !!!

thanks and wait for reply

bye


More information about the otrs mailing list