From 73748d2deb25f04b03cc3e03d0e3b5db71533a03 Mon Sep 17 00:00:00 2001 From: Claire Gravely Date: Wed, 22 Nov 2017 13:54:11 +0000 Subject: [PATCH] Bug 19678: Clicking Cancel when adding New Course to course reserves shows message Invalid Course! Clicking on the cancel link when adding a new course to course reserves displays the message 'Invalid Course!'. It would be better if it redirected back to the main Course Reserves page. This patch redirects the user back to the main course reserves page. To Test: 1. Go to Course Reserves 2. Click '+ New Course' 3. Cancel the process 4. You are shown 'Invalid Course!' 5. Apply patch and repeat steps 1-3 6. You are redirected back to the main course reserves page --- koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt index 1a3e01e..4e6441e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt @@ -167,8 +167,12 @@
- - Cancel + + [% IF course_id %] + Cancel + [% ELSE %] + Cancel + [% END %]
-- 2.1.4