Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validation for number of street lines #12013

Merged
merged 2 commits into from
Nov 6, 2017

Conversation

crissanclick
Copy link
Contributor

Description

Shipping address lines dissapear when street_lines on customer configuration is set to 0.

Fixed Issues (if relevant)

  1. If you leave as default, shipping lines disappear #7995

Manual testing scenarios

  1. Go to Stores > Configuration > Customer > Customer Configuration
  2. Set Number of Lines in a Street Address to 0

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@vkublytskyi vkublytskyi self-assigned this Nov 4, 2017
@vkublytskyi vkublytskyi added this to the November 2017 milestone Nov 4, 2017
@vkublytskyi vkublytskyi added Release Line: 2.2 2.2.x bug report Component: Checkout Component: Config Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Nov 4, 2017
@@ -198,7 +198,8 @@
<field id="street_lines" translate="label comment" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
<label>Number of Lines in a Street Address</label>
<backend_model>Magento\Customer\Model\Config\Backend\Address\Street</backend_model>
<comment>Leave empty for default (2). Valid range: 1-4</comment>
<comment>Valid range: 1-4</comment>
<validate>validate-digits validate-digits-range digits-range-1-4</validate>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add also required-entry to not allow blank field

@crissanclick
Copy link
Contributor Author

done @vkublytskyi

@magento-team magento-team merged commit e0ce5aa into magento:2.2-develop Nov 6, 2017
magento-team pushed a commit that referenced this pull request Nov 6, 2017
[EngCom] Public Pull Requests - 2.2-develop
 - MAGETWO-83278: Add validation for number of street lines #12013
 - MAGETWO-83277: [backport 2.2] Magento 2 Store Code validation regex: doesn't support uppercase letters in store code #12011
 - MAGETWO-82991: Product attribute creation page handles Storefront tab visibility wrong #11770
 - MAGETWO-82976: Update wrong layout update xml handle installed in CMS Home Page by d… #11863
 - MAGETWO-82952: Check attribute unique between same fields in magento commerce #11620
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Checkout Component: Config Progress: accept Release Line: 2.2 Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants