Version: ZenCart 1.5RC2
In profile manager, you can't add a new profile with an empty name.
But the rename function in the profile list lets you set an empty string as a new name for a profile.
Printable View
Version: ZenCart 1.5RC2
In profile manager, you can't add a new profile with an empty name.
But the rename function in the profile list lets you set an empty string as a new name for a profile.
In final v1.5.0 I can't replicate this problem.
If you can, please list specific steps to make it happen.
I take that back. I see what you're talking about now. I was looking at the wrong place :blush:
While it's not necessarily problematic to have a blank profile name, it can certainly be a bit confusing.
Here's a simple workaround "fix":
/admin/profiles.php
around line 83 is this section of code; simply insert the lines shown:Code:case 'update_name':
if (trim($_POST['profile-name']) == '') {
$messageStack->add_session(ERROR_INVALID_PROFILE_NAME, 'error');
zen_redirect(zen_href_link(FILENAME_PROFILES));
}
zen_update_profile_name($profile, $_POST['profile-name']);
$messageStack->add_session(SUCCESS_PROFILE_NAME_UPDATED, 'success');
zen_redirect(zen_href_link(FILENAME_PROFILES));
break;
Fix updated in v1.5.1