Skip to content

Conversation

edenduong
Copy link
Contributor

Description (*)

  1. Resolve Missing Validation at some Payment Method Settings #23916: Missing Validation at some Payment Method Settings

Solution: Add the validate tag into the system.xml file

Fixed Issues (if relevant)

  1. Missing Validation at some Payment Method Settings #23916: Missing Validation at some Payment Method Settings

Manual testing scenarios (*)

  1. Go to Store->Configurations->Sales->Payment Method
  2. Find these fields:
  • Check/Money Order
    • Minimum Order Total
    • Maximum Order Total
  • Bank Transfer Payment
    • Minimum Order Total
    • Maximum Order Total
    • Sort Order
  • Cash On Delivery Payment
    • Minimum Order Total
    • Maximum Order Total
    • Sort Order
  • Purchased Order
    • Minimum Order Total
    • Maximum Order Total
  • Authorize.Net Direct Post (Deprecated)
    • Minimum Order Total
    • Maximum Order Total
  • Authorize.Net
    • Minimum Order Total
    • Maximum Order Total
  1. Fill string "one" to the fields
  2. Save

Expected result: Can not save because it is not number

Questions or comments

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 are green)

@m2-assistant
Copy link

m2-assistant bot commented Jul 27, 2019

Hi @edenduong. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@edenduong
Copy link
Contributor Author

@magento give me test instance

@magento-engcom-team
Copy link
Contributor

Hi @edenduong. Thank you for your request. I'm working on Magento instance for you

@magento-engcom-team
Copy link
Contributor

Hi @edenduong, here is your new Magento instance.
Admin access: https://pr-23917.instances.magento-community.engineering/admin
Login: admin Password: 123123q

@magento-engcom-team
Copy link
Contributor

Hi @aleron75, thank you for the review.
ENGCOM-5504 has been created to process this Pull Request
✳️ @aleron75, could you please add one of the following labels to the Pull Request?

Label Description
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests

@engcom-Delta
Copy link
Contributor

✔️ QA passed

@fooman
Copy link
Contributor

fooman commented Jul 29, 2019

Does validate-number validate-zero-or-greater allow an empty field? Reason I am asking is that otherwise any change to any payment method could now require someone to manually input all those zeroes (even on inactive payment methods) before being able to save the page.

@edenduong
Copy link
Contributor Author

edenduong commented Jul 29, 2019

Does validate-number validate-zero-or-greater allow an empty field? Reason I am asking is that otherwise any change to any payment method could now require someone to manually input all those zeroes (even on inactive payment methods) before being able to save the page.

@fooman Yes. You can leave them empty and save. No problem. It only validates when the user enter the data but it is not a number.

taskula pushed a commit to Hypernova-Oy/magento2 that referenced this pull request Aug 1, 2019
@magento-engcom-team magento-engcom-team merged commit d4e86dd into magento:2.3-develop Aug 1, 2019
@m2-assistant
Copy link

m2-assistant bot commented Aug 1, 2019

Hi @edenduong, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@magento-engcom-team magento-engcom-team added this to the Release: 2.3.3 milestone Aug 1, 2019
@edenduong
Copy link
Contributor Author

@sivaschenko : Could I receive Bug fixed reward? Thank you :)

@sidolov sidolov added the Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests label Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing Validation at some Payment Method Settings
7 participants