updated hint in admin addresses controller

This commit is contained in:
shreesh arora
2021-01-21 12:10:23 +05:30
parent 39338e0a2f
commit b4e20f070e

View File

@@ -327,7 +327,9 @@ class AdminAddressesControllerCore extends AdminController
'name' => 'phone',
'required' => in_array('phone', $required_fields) || Configuration::get('PS_ONE_PHONE_AT_LEAST'),
'col' => '4',
'hint' => Configuration::get('PS_ONE_PHONE_AT_LEAST') ? sprintf($this->l('You must register at least one phone number.')) : ''
Configuration::get('PS_ONE_PHONE_AT_LEAST') ?
'hint' : '' => Configuration::get('PS_ONE_PHONE_AT_LEAST') ?
sprintf($this->l('You must register at least one phone number.')) : ''
);
} elseif ($addr_field_item == 'phone_mobile') {
$temp_fields[] = array(
@@ -336,7 +338,9 @@ class AdminAddressesControllerCore extends AdminController
'name' => 'phone_mobile',
'required' => in_array('phone_mobile', $required_fields) || Configuration::get('PS_ONE_PHONE_AT_LEAST'),
'col' => '4',
'hint' => Configuration::get('PS_ONE_PHONE_AT_LEAST') ? sprintf($this->l('You must register at least one phone number.')) : ''
Configuration::get('PS_ONE_PHONE_AT_LEAST') ?
'hint' : '' => Configuration::get('PS_ONE_PHONE_AT_LEAST') ?
sprintf($this->l('You must register at least one phone number.')) : ''
);
}
}