Closed
Description
Fairly straight forward,
If you configure both/either Prefix and Suffix as Optional, and then populate the configuration list, there is no option to allow a blank option (if they choose not to select an option, it defaults to the first option in the list). Even if you precursor the list with a space and ";" it defaults to the first option after the first semi-colon.
Preconditions
- Magento 2.1.2 CE
- php 7
Steps to reproduce
- Go to Admin panel > Stores > Configuration > Customers > Customer Configuration
- Change "Show Prefix" and/or "Show Suffix" to "Optional"
- Populate "Prefix Dropdown Options" with : " ;Ms;Miss;Mrs;Mr;Dr;Atty;Hon;Prof;Pres;VP;MA"
- Populate "Suffix Dropdown Options" with : " ;Jr;Sr;Ph.D.;M.D.;R.N.;Ret."
- Click Save.
- Switch to the front-end, and add something to your cart.
- Go to the checkout page.
- You'll notice that Prefix and Suffix load with the lists, however it skips the starting "blank" option, and immediately selects "Ms" for Prefix, and "Jr" for Suffix.
Expected result
- If the admin selects Optional, the First options should ALWAYS be a blank (even if the admin doesn't configure a blank in the options). Id actually go as far as saying, the admin shouldn't NEED to configure a blank in the options if "Optional" is selected.
Actual result
- Instead of showing the first option if it is a blank, it selects the first actual option in the list, regardless of how you configure it (I understand, that its likely stripping blanks to prevent errors).
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.2 release lineThe issue has been fixed in 2.3 release lineGate 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.2 releaseThe issue has been reproduced on latest 2.3 release