From 426468f4a1f432efe74fe680fed5dccc7dc6c397 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 4 Oct 2017 20:22:13 -0300 Subject: [PATCH] Bug 15378: Allow removal of lost items from course reserves MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It seems that this restriction is not necessary, it should be possible to remove lost items from course reserves. Test plan: Create a course and add reserve with a lost item => Without this patch the "Remove" button is disabled and the item cannot be removed from the course => With this patch applied the button is enable and the item can be removed Signed-off-by: Séverine QUEUNE Signed-off-by: Séverine QUEUNE --- .../intranet-tmpl/prog/en/modules/course_reserves/course-details.tt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt index e07cbe5..569265a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt @@ -30,9 +30,6 @@ if( $(this).hasClass("checkedout") ){ alert(_("This item cannot be removed. It is checked out")); } - if( $(this).hasClass("itemlost") ) { - alert(_("This item cannot be removed. It is lost")); - } }); }); @@ -208,8 +205,6 @@ [% IF CAN_user_coursereserves_delete_reserves %] [% IF cr.item.onloan %] - [% ELSIF cr.item.itemlost %] - [% ELSE %] [% END %] -- 2.7.4