User profile is not loading for users, but visible to admins. Reason: javascript error in console when user opens their profile, but there is no error when an admin does it.
We are getting the following error in the console:

We are getting the error when:
. it's a normal user and there is salutationName present and the layout has the "Name" field:
We are NOT getting any error when:
1. An admin user sees any user profile
2. if a regular user sees the profile but salutationName is null. Error is only when salutationName is there.
3. if the "name" field is removed from the layout and replaced with separate fields for salutationName, firstName and lastName.
We are using self hosted espocrm for about 15-16 months now, and we noticed this last month. It was working fine earlier.
this is the role assigned to the normal users:
We are getting the following error in the console:
We are getting the error when:
. it's a normal user and there is salutationName present and the layout has the "Name" field:
We are NOT getting any error when:
1. An admin user sees any user profile
2. if a regular user sees the profile but salutationName is null. Error is only when salutationName is there.
3. if the "name" field is removed from the layout and replaced with separate fields for salutationName, firstName and lastName.
We are using self hosted espocrm for about 15-16 months now, and we noticed this last month. It was working fine earlier.
this is the role assigned to the normal users:

Comment