Osclass Support Forums
Osclass plugin support => Business Profile Plugin => Topic started 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
-
@ajit
You are right, 2 different approach are used.
Go to admin/profile_edit.php and find this line:
$identifier = osc_sanitize_username(Params::getParam('s_identifier'));
and replace it with:
$identifier = (osc_sanitizeString(Params::getParam('s_identifier')) <> '' ? osc_sanitizeString(Params::getParam('s_identifier')) : $id);
-
Thanks, issue solved.
-
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.
-
If slug is not unique, user ID is added to slug.
-
But even slug is unique user id added. Almost each profile adding automatically once edited.
-
@Ajit
tested on demo and could not reproduce such behaviour.