Skip to content

Commit

Permalink
Διόρθωση ερωτήματος για other_teachers
Browse files Browse the repository at this point in the history
  • Loading branch information
parapente committed Oct 31, 2024
1 parent 9865edb commit 9e5ea22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Services/FormDataTableService.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ private function getTeacherQuery(Form $form): Builder
)
->union(function (Builder $query) use ($form) {
$query->from('other_teachers')
->addSelect(['form_field_data.*', 'other_teachers.id as tid', 'name', 'employeenumber as am_afm'])
->addSelect(['form_field_data.*', 'other_teachers.id as tid'])
->selectRaw("'other_teacher' as type")
->addSelect(['name', 'employeenumber as am_afm'])
->leftJoin('form_field_data', 'form_field_data.other_teacher_id', '=', 'other_teachers.id')
->leftJoin('form_fields', 'form_fields.id', '=', 'form_field_data.form_field_id')
->whereIn(
Expand Down

0 comments on commit 9e5ea22

Please sign in to comment.