Skip to content

Conversation

@dipti2jcommerce
Copy link

In My Account dashboard page when we create new address from address book telephone field is require,but no validation appear while submission

Description (*)

In My Account dashboard page when we create new address from address book telephone field is require,but no validation appear while submission

Fixed Issues (if relevant)

In My Account dashboard page when we create new address from address book telephone field is require,but no validation appear while submission #20261

Manual testing scenarios (*)

2019-01-14_12-52_add new address

Contribution checklist (*)

In My Account dashboard page when we create new address from address book telephone field is require,but no validation appear while submission

@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Jan 14, 2019

CLA assistant check
All committers have signed the CLA.

@magento-engcom-team
Copy link
Contributor

Hi @dipti2jcommerce. 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-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me 2.3-develop instance - deploy vanilla Magento instance

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

@tuyennn
Copy link
Member

tuyennn commented Jan 14, 2019

The problem came form the unknown
->getAttributeValidationClass('fax') which defined in telephone templates phtml, definitely this should be
->getAttributeValidationClass('telephone')

This happened only on branch 2.3

Please remove the lines, if this PR would be accepted

<?php
$_validationClass = $block->escapeHtmlAttr(
$this->helper('Magento\Customer\Helper\Address')
->getAttributeValidationClass('fax')
);
?>

@dipti2jcommerce
Copy link
Author

Hi @tuyennn ,
I have change value from fax to telephone ->getAttributeValidationClass('fax') which defined in telephone templates phtml, to
->getAttributeValidationClass('telephone').
And its working fine,please check.
Thanks,
Dipti

@VladimirZaets VladimirZaets self-assigned this Jan 14, 2019
@magento-engcom-team magento-engcom-team added this to the Release: 2.3.1 milestone Jan 14, 2019
@tuyennn
Copy link
Member

tuyennn commented Jan 15, 2019

@dipti2jcommerce As I saw you made change to

class="input-text <?= $block->escapeHtmlAttr($block->getAttributeValidationClass('telephone')) ?>"

So why should we keep these lines? - You could remove those

<?php
$_validationClass = $block->escapeHtmlAttr(
$this->helper('Magento\Customer\Helper\Address')
->getAttributeValidationClass('fax')
);
?>

@dipti2jcommerce
Copy link
Author

dipti2jcommerce commented Jan 15, 2019

Hi @tuyennn ,
I have removed my changes made previously and add changes as per requirement,please check .
Thanks,
Dipti

@magento-engcom-team
Copy link
Contributor

@dipti2jcommerce thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository.

@ghost
Copy link

ghost commented Jan 29, 2019

Hi @dipti2jcommerce, 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
Copy link
Contributor

Hi @dipti2jcommerce. Thank you for your contribution.
We will aim to release these changes as part of 2.3.1.
Please check the release notes for final confirmation.

@magento-engcom-team magento-engcom-team added this to the Release: 2.3.1 milestone Jan 29, 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.

7 participants