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.
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.
Working with Zen Cart since 2003 :: www.prr.fi
Author of the original Finnish language pack for Zen Cart since 2004
In final v1.5.0 I can't replicate this problem.
If you can, please list specific steps to make it happen.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
I take that back. I see what you're talking about now. I was looking at the wrong place![]()
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
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;
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Fix updated in v1.5.1
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Bookmarks