Team 4 (MONTAIR LC Kid 5 Dr Conversion) Error Fix
Specific Folder FTP Upload / ftp-deploy (push) Successful in 41s Details

This commit is contained in:
zeeshan 2026-10-09 15:02:32 +05:30
parent a3af251221
commit b93b0b04ae
1 changed files with 7 additions and 2 deletions

View File

@ -58,7 +58,10 @@
}
}
$historyDoctorIds = array_unique($historyDoctorIds);
/* $historyDoctorIds = array_unique($historyDoctorIds); */
$historyDoctorIds = array_values(array_unique($historyDoctorIds));
@endphp
@ -299,7 +302,9 @@
$('#field-legacy_code').val($('option:selected', this).attr('msl_code'));
});
let historyDoctorIds = @json($historyDoctorIds).map(String);
/* let historyDoctorIds = @json($historyDoctorIds).map(String); */
let rawHistory = @json($historyDoctorIds);
let historyDoctorIds = (Array.isArray(rawHistory) ? rawHistory : Object.values(rawHistory || {})).map(String);
console.log("HISTORY DOCTOR IDS:", historyDoctorIds);
// 🔥 NEW - Disable doctors that were already submitted
// NEW - DEBUG duplicate doctor check