diff --git a/app/Http/Controllers/WakilController.php b/app/Http/Controllers/WakilController.php index d8bb2a86..7d5d9dd6 100644 --- a/app/Http/Controllers/WakilController.php +++ b/app/Http/Controllers/WakilController.php @@ -51,7 +51,7 @@ class WakilController extends Controller public function suratwakil(Request $request) { $noic = $request->noic; - // $idtype = $request->customerIDType; + $idtype = $request->customerIDType ?? 'nokp'; Session::put('noic', $noic); $api_url = config('api.url'); $auth_user = Auth::user(); diff --git a/resources/views/callcenter/indexnama.blade.php b/resources/views/callcenter/indexnama.blade.php index 39334ad7..6da0ee09 100644 --- a/resources/views/callcenter/indexnama.blade.php +++ b/resources/views/callcenter/indexnama.blade.php @@ -883,7 +883,7 @@ return leapYearCount; } - var regex = /^[a-zA-Z0-9]+$/g; + var regex = /^[A-Za-z0-9-]+$/; function verifynokp(){ var id_type = $('#customerIDType').val(); diff --git a/resources/views/khazanah/wakil.blade.php b/resources/views/khazanah/wakil.blade.php index 703a015f..7446472e 100644 --- a/resources/views/khazanah/wakil.blade.php +++ b/resources/views/khazanah/wakil.blade.php @@ -198,7 +198,7 @@ return leapYearCount; } - var regex = /^[a-zA-Z0-9]+$/g; + var regex = /^[A-Za-z0-9-]+$/; function verifynokp(){ var id_type = $('#customerIDType').val();