We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e8cc48 commit bbbe106Copy full SHA for bbbe106
1 file changed
app/Http/Controllers/ProjectController.php
@@ -620,7 +620,7 @@ public function importParticipantUpload(Request $request) {
620
if ($existingParticipant = $project->participants->where('user_id', $student->id)->first()) {
621
if ($request->filled('project') and (ProjectParticipant::TYPES_RANK[$existingParticipant->type] < ProjectParticipant::TYPES_RANK[$row['type']])) {
622
$messages [] = 'WARNING: '.$row['student_id'].' มีอยู่แล้วและมีตำแหน่งที่สูงกว่า ไม่บันทึกข้อมูลใหม่';
623
- } elseif ($existingParticipant->type != $row['type'] or $existingParticipant->title != $row['title']) {
+ } elseif ($existingParticipant->type != $row['type'] or $existingParticipant->title != ($row['title'] ?? '')) {
624
$toAdd->add([
625
'user_id' => $student->id,
626
'user_name' => $student->name,
0 commit comments