FIX_BranchState

This commit is contained in:
sanjeev.p 2026-02-12 16:58:29 +05:30
parent afaa70a3a0
commit 0f7258a0ee

View File

@ -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\-]+$/]',