Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message while loading customer list in CustomerDashboard without Gravatar #2425

Closed
Lucsaan opened this issue Aug 1, 2023 · 1 comment
Labels
bug Something isn't working as intended

Comments

@Lucsaan
Copy link
Contributor

Lucsaan commented Aug 1, 2023

Use of uninitialized value in substr at /opt/otobo/bin/psgi-bin/../../Kernel/Output/HTML/TicketOverview/CustomerList.pm line 176.

If you are loading a list of tickets in customer dashboard, the above error is shown for every ticket

The problem is the usage of the wrong keys to get $UserInitials.
Wrong: UserFirstName -> Correct: UserFirstname
Wrong: UserLastName -> Correct: UserLastname

$UserInitials = substr( $CustomerUser{UserFirstName}, 0, 1 ) . substr( $CustomerUser{UserLastName}, 0, 1 );

image

Lucsaan added a commit to Lucsaan/otobo that referenced this issue Aug 1, 2023
@svenoe
Copy link
Contributor

svenoe commented Aug 7, 2023

Hi Lucsaan,

a common mistake...thanks for noting and also the fix. :)

Sven

@svenoe svenoe added the bug Something isn't working as intended label Aug 7, 2023
@svenoe svenoe closed this as completed Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended
Projects
None yet
Development

No branches or pull requests

2 participants