Skip to content

Commit

Permalink
Fixed some errors in the customer interface being shown with the agen…
Browse files Browse the repository at this point in the history
…t interface's header navigation. Thanks for reporting/hints to Tim Püttmanns, maxence.
  • Loading branch information
jepf committed Sep 26, 2023
1 parent 7e46278 commit 714d9e6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# 6.5.5 2023-??-??
- 2023-09-22 Fixed some errors in the customer interface being shown with the agent interface's header navigation. Thanks for reporting/hints to Tim Püttmanns, maxence.
- 2023-08-29 Updated maximum length of generic agent job database fields and their input fields in dialog AdminGenericAgent to prevent errors storing values too long for the database. [#474](https://github.com/znuny/Znuny/issues/474)
- 2023-08-23 Added parameter to enforce account selection for the Microsoft OAuth2 template.

Expand Down
4 changes: 2 additions & 2 deletions Kernel/Modules/CustomerPreferences.pm
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ sub Run {
# check group param
my $Group = $ParamObject->GetParam( Param => 'Group' ) || '';
if ( !$Group ) {
return $LayoutObject->ErrorScreen(
return $LayoutObject->CustomerErrorScreen(
Message => Translatable('Param Group is required!'),
);
}

# check preferences setting
my %Preferences = %{ $Kernel::OM->Get('Kernel::Config')->Get('CustomerPreferencesGroups') };
if ( !$Preferences{$Group} ) {
return $LayoutObject->ErrorScreen(
return $LayoutObject->CustomerErrorScreen(
Message => $LayoutObject->{LanguageObject}->Translate( 'No such config for %s', $Group ),
);
}
Expand Down
2 changes: 1 addition & 1 deletion Kernel/Modules/CustomerTicketMessage.pm
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ sub Run {
);
}
else {
return $LayoutObject->ErrorScreen(
return $LayoutObject->CustomerErrorScreen(
Message => Translatable('No Subaction!'),
Comment => Translatable('Please contact the administrator.'),
);
Expand Down
2 changes: 1 addition & 1 deletion Kernel/Modules/CustomerTicketPrint.pm
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ sub Run {

# Check needed stuff.
if ( !$Self->{TicketID} ) {
return $LayoutObject->ErrorScreen(
return $LayoutObject->CustomerErrorScreen(
Message => Translatable('Need TicketID!'),
);
}
Expand Down

0 comments on commit 714d9e6

Please sign in to comment.