Updated the functions name, added vaidation in admin guest user update process, and code optimized
This commit is contained in:
@@ -121,14 +121,15 @@ class AdminCustomerPreferencesControllerCore extends AdminController
|
||||
'cast' => 'intval',
|
||||
'type' => 'bool'
|
||||
),
|
||||
'PS_CUSTOMER_GUEST_MAX_NUM' => array(
|
||||
'title' => $this->l('Maximum Customers guests'),
|
||||
'hint' => $this->l('Maximum number of guests a customer can add using the "booking for someone else" feature. Set as 0 for no limit.'),
|
||||
'PS_CUSTOMER_GUEST_MAX_LIMIT' => array(
|
||||
'title' => $this->l('Maximum Guests per Customer'),
|
||||
'validation' => 'isUnsignedInt',
|
||||
'cast' => 'intval',
|
||||
'size' => 5,
|
||||
'type' => 'text',
|
||||
'class' => 'fixed-width-xl',
|
||||
'hint' => $this->l('Enter the maximum number of guest profiles a customer can create when using the "Booking for Someone Else" option.'),
|
||||
'desc' => $this->l('Set as 0 for no limit.')
|
||||
),
|
||||
),
|
||||
'submit' => array(
|
||||
|
||||
Reference in New Issue
Block a user