Lines 966-974
sub SearchCourses {
Link Here
|
966 |
my $enabled = $params{'enabled'} || '%'; |
966 |
my $enabled = $params{'enabled'} || '%'; |
967 |
|
967 |
|
968 |
my @params; |
968 |
my @params; |
969 |
my $query = "SELECT c.* FROM courses c"; |
969 |
my $query = " |
970 |
|
970 |
SELECT c.course_id, c.department, c.course_number, c.section, c.course_name, c.term, c.staff_note, c.public_note, c.students_count, c.enabled, c.timestamp |
971 |
$query .= " |
971 |
FROM courses c |
972 |
LEFT JOIN course_instructors ci |
972 |
LEFT JOIN course_instructors ci |
973 |
ON ( c.course_id = ci.course_id ) |
973 |
ON ( c.course_id = ci.course_id ) |
974 |
LEFT JOIN borrowers b |
974 |
LEFT JOIN borrowers b |
Lines 992-998
sub SearchCourses {
Link Here
|
992 |
) |
992 |
) |
993 |
AND |
993 |
AND |
994 |
c.enabled LIKE ? |
994 |
c.enabled LIKE ? |
995 |
GROUP BY c.course_id |
995 |
GROUP BY c.course_id, c.department, c.course_number, c.section, c.course_name, c.term, c.staff_note, c.public_note, c.students_count, c.enabled, c.timestamp |
996 |
"; |
996 |
"; |
997 |
|
997 |
|
998 |
$term //= ''; |
998 |
$term //= ''; |