updated hint in admin addresses controller
This commit is contained in:
@@ -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.')) : ''
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user