]> git.koha-community.org Git - koha.git/commit
Bug 28762: Use Koha::Course in course-details controller
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 23 Sep 2021 18:06:43 +0000 (19:06 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 23 Jul 2024 15:04:05 +0000 (16:04 +0100)
commit7f38c77d091cd4192b039041bcc3a00a05e10583
tree9e9cb8b852f372b2262e14d4d842ca1b5bdfb6e0
parent316c14c1bf75cec6f3fcae61fa29a69223a292c6
Bug 28762: Use Koha::Course in course-details controller

This patch updates Koha::Course to include the 'instructors' relation
accessor and then update the course-details controller to use the
Koha::Course object and pass it to the template instead of building a
hash using GetCourse.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Course.pm
course_reserves/course-details.pl