OTRS: 3.3.9
ITSM: 3.3.4
Wenn man eine Suche im CMDB startet, z.B.: 'Computer' und 'Install Date' als Filter verwendet wird die Suche zwar ausgeführt, jedoch erhält man bei dem Versuch auf Seite 2 zu wechseln oder die Sortierung zu ändern:
Code: Select all
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Code: Select all
[error] Can't use string ("1") as a HASH ref while "strict refs" in use at /opt/otrs//Kernel/Output/HTML/ITSMConfigItemLayoutDate.pm line 206.\n
Code: Select all
# get form data
my $Used;
my $StartDay;
my $StartMonth;
my $StartYear;
my $StopDay;
my $StopMonth;
my $StopYear;
if ( $Param{Value} ) {
$Used = $Param{Value}->{ $Param{Key} }; <-----------------------------------------------------------line 206
$StartDay = $Param{Value}->{ $Param{Key} . '::TimeStart::Day' };
$StartMonth = $Param{Value}->{ $Param{Key} . '::TimeStart::Month' };
$StartYear = $Param{Value}->{ $Param{Key} . '::TimeStart::Year' };
$StopDay = $Param{Value}->{ $Param{Key} . '::TimeStop::Day' };
$StopMonth = $Param{Value}->{ $Param{Key} . '::TimeStop::Month' };
$StopYear = $Param{Value}->{ $Param{Key} . '::TimeStop::Year' };
}
else {
$Used = $Self->{ParamObject}->GetParam( Param => $Param{Key} );
$StartDay = $Self->{ParamObject}->GetParam( Param => $Param{Key} . '::TimeStart::Day' );
$StartMonth = $Self->{ParamObject}->GetParam( Param => $Param{Key} . '::TimeStart::Month' );
$StartYear = $Self->{ParamObject}->GetParam( Param => $Param{Key} . '::TimeStart::Year' );
$StopDay = $Self->{ParamObject}->GetParam( Param => $Param{Key} . '::TimeStop::Day' );
$StopMonth = $Self->{ParamObject}->GetParam( Param => $Param{Key} . '::TimeStop::Month' );
$StopYear = $Self->{ParamObject}->GetParam( Param => $Param{Key} . '::TimeStop::Year' );
}
if (
$Used
&& $StartDay && $StartMonth && $StartYear
&& $StopDay && $StopMonth && $StopYear
)
{
my $StartDate = sprintf '%02d-%02d-%02d', $StartYear, $StartMonth, $StartDay;
my $StopDate = sprintf '%02d-%02d-%02d', $StopYear, $StopMonth, $StopDay;
return { '-between' => [ $StartDate, $StopDate ] };
}
return []; # no conditions by default
}
Bug im ITSM?
Hat jemand das gleiche problem?