Osclass Support Forums

Osclass plugin support => Business Profile Plugin => Topic started by: Ajit Sahane on March 26, 2023, 04:12:48 PM

Title: Identifier value changed after profile edit
Post by: Ajit Sahane 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
Title: Re: Identifier value changed after profile edit
Post by: MB Themes 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);
Title: Re: Identifier value changed after profile edit
Post by: Ajit Sahane on March 27, 2023, 05:33:06 AM
Thanks, issue solved.
Title: Re: Identifier value changed after profile edit
Post by: Ajit Sahane 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.
Title: Re: Identifier value changed after profile edit
Post by: MB Themes on April 03, 2023, 09:43:05 AM
If slug is not unique, user ID is added to slug.
Title: Re: Identifier value changed after profile edit
Post by: Ajit Sahane on April 03, 2023, 09:59:30 AM
But even slug is unique user id added. Almost each profile adding automatically once edited.


Title: Re: Identifier value changed after profile edit
Post by: MB Themes on April 03, 2023, 10:28:07 AM
@Ajit
tested on demo and could not reproduce such behaviour.