forked from science-ation/science-ation
- Return emergency contact info to a component in the query.
This commit is contained in:
parent
998fe35d67
commit
5a3d7de0b6
@ -481,8 +481,8 @@ $report_students_fields = array(
|
|||||||
$emergencycontact_join = '';
|
$emergencycontact_join = '';
|
||||||
if(in_array('emergencycontacts', $components)) {
|
if(in_array('emergencycontacts', $components)) {
|
||||||
/* No need to put the year in here, students.id is unique across years */
|
/* No need to put the year in here, students.id is unique across years */
|
||||||
$emergencycontact_join = "LEFT JOIN emergencycontact ON (
|
$emergencycontact_join = "LEFT JOIN emergencycontact ON
|
||||||
students.id=emergencycontact.students_id )";
|
emergencycontact.students_id=students.id ";
|
||||||
}
|
}
|
||||||
|
|
||||||
$q = " FROM students
|
$q = " FROM students
|
||||||
@ -491,7 +491,7 @@ $report_students_fields = array(
|
|||||||
LEFT JOIN projects ON projects.registrations_id=students.registrations_id
|
LEFT JOIN projects ON projects.registrations_id=students.registrations_id
|
||||||
LEFT JOIN projectdivisions ON projectdivisions.id=projects.projectdivisions_id
|
LEFT JOIN projectdivisions ON projectdivisions.id=projects.projectdivisions_id
|
||||||
LEFT JOIN projectcategories ON projectcategories.id=projects.projectcategories_id
|
LEFT JOIN projectcategories ON projectcategories.id=projects.projectcategories_id
|
||||||
LEFT JOIN emergencycontact ON emergencycontact.students_id=students.id
|
$emergencycontact_join
|
||||||
$tour_join
|
$tour_join
|
||||||
$partner_join
|
$partner_join
|
||||||
WHERE
|
WHERE
|
||||||
|
Loading…
Reference in New Issue
Block a user