From ef5982b4d1867bf0516a92f8806aac1af2b1ab9f Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Thu, 12 Mar 2026 18:03:43 +0530 Subject: [PATCH] FIX_VALIDATION_RULES --- app/Controllers/TicketController.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/Controllers/TicketController.php b/app/Controllers/TicketController.php index 986579e6..ce11e595 100644 --- a/app/Controllers/TicketController.php +++ b/app/Controllers/TicketController.php @@ -1178,9 +1178,9 @@ class TicketController extends BaseController ], 'tpa_no' => [ 'label' => 'TPA ID', - 'rules' => 'permit_empty|regex_match[/^[a-zA-Z0-9\/]+$/]', + 'rules' => 'permit_empty|regex_match[/^[a-zA-Z0-9\/\-_]+$/]', 'errors' => [ - 'regex_match' => 'TPA ID can only contain letters, numbers, and /.' + 'regex_match' => 'TPA ID can only contain letters, numbers, /, -, and _.' ] ], 'emp_mobile' => ['label' => 'Employee Mobile No','rules' => 'required|numeric|exact_length[10]', @@ -1233,9 +1233,9 @@ class TicketController extends BaseController ], 'hospital_address' => [ 'label' => 'Hospital Address', - 'rules' => 'permit_empty|regex_match[/^[a-zA-Z0-9\s\-_.,#\/]+$/]', + 'rules' => 'permit_empty|regex_match[/^[a-zA-Z0-9\s.,#\/_-]+$/]', 'errors' => [ - 'regex_match' => 'The {field} contains invalid characters (Allowed: letters, numbers, spaces, dashes, commas, dots, # and /).' + 'regex_match' => 'The {field} contains invalid characters (Allowed: letters, numbers, spaces, -, _, ., ,, # and /).' ], ], 'hospital_state' => [ @@ -1531,9 +1531,9 @@ class TicketController extends BaseController ], 'tpa_no' => [ 'label' => 'TPA ID', - 'rules' => 'permit_empty|regex_match[/^[a-zA-Z0-9\/]+$/]', + 'rules' => 'permit_empty|regex_match[/^[a-zA-Z0-9\/\-_]+$/]', 'errors' => [ - 'regex_match' => 'TPA ID can only contain letters, numbers, and /.' + 'regex_match' => 'TPA ID can only contain letters, numbers, /, -, and _.' ] ], 'emp_mobile' => ['label' => 'Employee Mobile No','rules' => 'required|numeric|exact_length[10]', @@ -1586,9 +1586,9 @@ class TicketController extends BaseController ], 'hospital_address' => [ 'label' => 'Hospital Address', - 'rules' => 'permit_empty|regex_match[/^[a-zA-Z0-9\s\-_.,#\/]+$/]', + 'rules' => 'permit_empty|regex_match[/^[a-zA-Z0-9\s.,#\/_-]+$/]', 'errors' => [ - 'regex_match' => 'The {field} contains invalid characters (Allowed: letters, numbers, spaces, dashes, commas, dots, # and /).' + 'regex_match' => 'The {field} contains invalid characters (Allowed: letters, numbers, spaces, -, _, ., ,, # and /).' ], ], 'hospital_state' => [