From 0f7258a0ee605a0aad2e85012504b74e0227054e Mon Sep 17 00:00:00 2001 From: "sanjeev.p" Date: Thu, 12 Feb 2026 16:58:29 +0530 Subject: [PATCH] FIX_BranchState --- app/Controllers/ClientController.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/Controllers/ClientController.php b/app/Controllers/ClientController.php index 2343b08d..af024fd7 100755 --- a/app/Controllers/ClientController.php +++ b/app/Controllers/ClientController.php @@ -2232,10 +2232,11 @@ class ClientController extends AdminController ], 'state' => [ 'label' => 'State', - 'rules' => 'required|regex_match[/^[a-zA-Z\s\-]+$/]', + // 'rules' => 'required|regex_match[/^[a-zA-Z\s\-]+$/]', + 'rules' => 'required', 'errors' => [ 'required' => 'State is required.', - 'regex_match' => 'State name can only contain letters, spaces, and hyphens.' + // 'regex_match' => 'State name can only contain letters, spaces, and hyphens.' ] ], 'district' => [ @@ -2419,11 +2420,8 @@ class ClientController extends AdminController ], 'state' => [ 'label' => 'State', - 'rules' => 'required|regex_match[/^[a-zA-Z\s\-]+$/]', - 'errors' => [ - 'required' => 'State is required.', - 'regex_match' => 'State name can only contain letters, spaces, and hyphens.' - ] + 'rules' => 'required', + 'errors' => ['required' => 'State is required.'] ], 'district' => [ 'rules' => 'required|regex_match[/^[a-zA-Z0-9\s\-]+$/]',