Closed
Description
Preconditions
- Magento v2.1.9 (Probably earlier versions as well)
Steps to reproduce
- Go to stores > all stores
- Create Store View
- Attempt to create a store code with uppercase letters
Expected result
- It should work, or give an error message
Actual result
- You get an error message back saying
The store code may contain only letters (a-z), numbers (0-9) or underscore (_), and the first character must be a letter.
Now, this error message is totally acceptable, makes perfect sense, but it let's say, for example, your store code you tried was ACME_STORE1, it's only letters and numbers, and has an underscore, and the first character is a letter, by all accounts, this should work, as far as i'm aware.
Unless there's a reason the store code is lowercase only the regex here:
should either be changed to /^[A-z]+[A-z0-9_]*$/
, or the message should be changed to indicate that only lowercase letters are supported.
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.1 release lineThe issue has been fixed in 2.2 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release