Updated the functions name, added vaidation in admin guest user update process, and code optimized

This commit is contained in:
vishalsingh.qlo325
2025-05-15 18:50:06 +05:30
parent e30e77112e
commit 65ba68d517
10 changed files with 172 additions and 88 deletions

View File

@@ -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(