fix: surat wakil cannot generate for certain passport #32

Closed
afrina wants to merge 1 commits from hotfix/surat-wakil into main
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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();
@@ -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();
+1 -1
View File
@@ -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();