*

Ajit Sahane

  • ****
  • 147 posts
  • https://bestclassifiedsusa.com
Identifier value changed after profile edit
« on: March 26, 2023, 04:12:48 PM »
When admin edit any profile from backend, then

Identifier -  slug changed every time -  like 1st time company/my-business    slug & when edit profile its auto change to

company/mybusiness         -   removed -  from word

how to fix.    v.1.7.2  & osclass 8.1.1  with epsilon them

Marked as best answer by ajit.sahane on March 27, 2023, 05:32:44 AM
*

MB Themes

Re: Identifier value changed after profile edit
« Reply #1 on: March 26, 2023, 09:15:40 PM »
@ajit
You are right, 2 different approach are used.
Go to admin/profile_edit.php and find this line:
Code: [Select]
$identifier = osc_sanitize_username(Params::getParam('s_identifier'));

and replace it with:
Code: [Select]
$identifier = (osc_sanitizeString(Params::getParam('s_identifier')) <> '' ? osc_sanitizeString(Params::getParam('s_identifier')) : $id);
« Last Edit: March 26, 2023, 09:22:40 PM by MB Themes »
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Ajit Sahane

  • ****
  • 147 posts
  • https://bestclassifiedsusa.com
Re: Identifier value changed after profile edit
« Reply #2 on: March 27, 2023, 05:33:06 AM »
Thanks, issue solved.

*

Ajit Sahane

  • ****
  • 147 posts
  • https://bestclassifiedsusa.com
Re: Identifier value changed after profile edit
« Reply #3 on: April 02, 2023, 05:53:07 PM »
Now again another issue coming.

when business profile edit & save then Identifier slug value changed - Old issue ( - removed - its solved ) New issue - ( slug123456)  User id digit number coming

this is unexpected in slug field   only profile name want with -  &  don't want with id number

pls check this & fix.

*

MB Themes

Re: Identifier value changed after profile edit
« Reply #4 on: April 03, 2023, 09:43:05 AM »
If slug is not unique, user ID is added to slug.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Ajit Sahane

  • ****
  • 147 posts
  • https://bestclassifiedsusa.com
Re: Identifier value changed after profile edit
« Reply #5 on: April 03, 2023, 09:59:30 AM »
But even slug is unique user id added. Almost each profile adding automatically once edited.



*

MB Themes

Re: Identifier value changed after profile edit
« Reply #6 on: April 03, 2023, 10:28:07 AM »
@Ajit
tested on demo and could not reproduce such behaviour.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots