Skip to content

Commit

Permalink
MAGETWO-52244: [Github] Validations not working on customer registrat…
Browse files Browse the repository at this point in the history
…ion on DOB field. #4248
  • Loading branch information
Olga Nakonechna committed Apr 25, 2016
1 parent e60afa2 commit 35732a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/code/Magento/Customer/Block/Widget/Dob.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ public function getLabel()
public function getFieldHtml()
{
$this->dateElement->setData([
'extra_params' => $this->isRequired() ? 'data-validate="{required:true}"' : '',
'name' => $this->getHtmlId(),
'id' => $this->getHtmlId(),
'class' => $this->getHtmlClass(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
}

.hasDatepicker {
+ .ui-datepicker-trigger {
~ .ui-datepicker-trigger {
.lib-button-reset();
.lib-icon-font(
@_icon-font-content: @icon-calendar,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
}

.hasDatepicker {
+ .ui-datepicker-trigger {
~ .ui-datepicker-trigger {
.lib-button-reset();
.lib-icon-font(
@_icon-font-content: @icon-calendar,
Expand Down

0 comments on commit 35732a1

Please sign in to comment.