016da8f2 by Manuel Hecht

Tidied.

1 parent 6b9947ba
......@@ -310,13 +310,13 @@ sub Run {
Filters => \%NavBarFilter,
FilterLink => $LinkFilter,
TitleName => $LayoutObject->{LanguageObject}->Translate('Overview: ITSM ConfigItem'),
TitleValue => $Filters{ $Self->{Filter} }->{Name},
Env => $Self,
LinkPage => $LinkPage,
LinkSort => $LinkSort,
ShowColumns => \@ShowColumns,
SortBy => $LayoutObject->Ascii2Html( Text => $SortBy ),
OrderBy => $LayoutObject->Ascii2Html( Text => $OrderBy ),
TitleValue => $Filters{ $Self->{Filter} }->{Name},
Env => $Self,
LinkPage => $LinkPage,
LinkSort => $LinkSort,
ShowColumns => \@ShowColumns,
SortBy => $LayoutObject->Ascii2Html( Text => $SortBy ),
OrderBy => $LayoutObject->Ascii2Html( Text => $OrderBy ),
);
# add footer
......
......@@ -59,7 +59,8 @@ sub Run {
# error screen
if ( !$Access ) {
return $LayoutObject->NoPermission(
Message => $LayoutObject->{LanguageObject}->Translate( 'You need %s permissions!', $Self->{Config}->{Permission} ),
Message =>
$LayoutObject->{LanguageObject}->Translate( 'You need %s permissions!', $Self->{Config}->{Permission} ),
WithHeader => 'yes',
);
}
......@@ -73,7 +74,8 @@ sub Run {
# check if config item is found
if ( !$ConfigItem ) {
return $LayoutObject->ErrorScreen(
Message => $LayoutObject->{LanguageObject}->Translate( 'Config item "%s" not found in database!', $ConfigItemID ),
Message =>
$LayoutObject->{LanguageObject}->Translate( 'Config item "%s" not found in database!', $ConfigItemID ),
Comment => Translatable('Please contact the administrator.'),
);
}
......@@ -98,7 +100,8 @@ sub Run {
# show error message, when delete failed
return $LayoutObject->ErrorScreen(
Message => $LayoutObject->{LanguageObject}->Translate( 'Was not able to delete the configitem ID %s!', $ConfigItemID ),
Message => $LayoutObject->{LanguageObject}
->Translate( 'Was not able to delete the configitem ID %s!', $ConfigItemID ),
Comment => Translatable('Please contact the administrator.'),
);
}
......@@ -111,7 +114,8 @@ sub Run {
if ( !$Version->{VersionID} ) {
return $LayoutObject->ErrorScreen(
Message => $LayoutObject->{LanguageObject}->Translate( 'No version found for ConfigItemID %s!', $ConfigItemID ),
Message =>
$LayoutObject->{LanguageObject}->Translate( 'No version found for ConfigItemID %s!', $ConfigItemID ),
Comment => Translatable('Please contact the administrator.'),
);
}
......
......@@ -127,7 +127,8 @@ sub Run {
# abort, if no definition is defined
if ( !$XMLDefinition->{DefinitionID} ) {
return $LayoutObject->ErrorScreen(
Message => $LayoutObject->{LanguageObject}->Translate( 'No definition was defined for class %s!', $ConfigItem->{Class} ),
Message => $LayoutObject->{LanguageObject}
->Translate( 'No definition was defined for class %s!', $ConfigItem->{Class} ),
Comment => Translatable('Please contact the administrator.'),
);
}
......
......@@ -73,7 +73,8 @@ sub Run {
);
if ( !$ConfigItem->{ConfigItemID} ) {
return $LayoutObject->ErrorScreen(
Message => $LayoutObject->{LanguageObject}->Translate( 'ConfigItemID %s not found in database!', $ConfigItemID ),
Message =>
$LayoutObject->{LanguageObject}->Translate( 'ConfigItemID %s not found in database!', $ConfigItemID ),
Comment => Translatable('Please contact the administrator.'),
);
}
......
......@@ -211,7 +211,8 @@ sub Run {
# abort, if no definition is defined
if ( !$XMLDefinition->{DefinitionID} ) {
return $LayoutObject->ErrorScreen(
Message => $LayoutObject->{LanguageObject}->Translate( 'No definition was defined for class %s!', $ClassID ),
Message =>
$LayoutObject->{LanguageObject}->Translate( 'No definition was defined for class %s!', $ClassID ),
Comment => Translatable('Please contact the administrator.'),
);
}
......@@ -468,7 +469,8 @@ sub Run {
# abort, if no definition is defined
if ( !$XMLDefinition->{DefinitionID} ) {
return $LayoutObject->ErrorScreen(
Message => $LayoutObject->{LanguageObject}->Translate( 'No definition was defined for class %s!', $ClassID ),
Message =>
$LayoutObject->{LanguageObject}->Translate( 'No definition was defined for class %s!', $ClassID ),
Comment => Translatable('Please contact the administrator.'),
);
}
......
......@@ -79,7 +79,8 @@ sub Run {
);
if ( !$ConfigItem->{ConfigItemID} ) {
return $LayoutObject->ErrorScreen(
Message => $LayoutObject->{LanguageObject}->Translate( 'ConfigItemID %s not found in database!', $ConfigItemID ),
Message =>
$LayoutObject->{LanguageObject}->Translate( 'ConfigItemID %s not found in database!', $ConfigItemID ),
Comment => Translatable('Please contact the administrator.'),
);
}
......@@ -90,7 +91,8 @@ sub Run {
);
if ( !$VersionList->[0]->{VersionID} ) {
return $LayoutObject->ErrorScreen(
Message => $LayoutObject->{LanguageObject}->Translate( 'No version found for ConfigItemID %s!', $ConfigItemID ),
Message =>
$LayoutObject->{LanguageObject}->Translate( 'No version found for ConfigItemID %s!', $ConfigItemID ),
Comment => Translatable('Please contact the administrator.'),
);
}
......