Bug 31313: (QA follow-up) Remove unused bundle_host field from item_info
authorJoonas Kylmälä <joonas.kylmala@iki.fi>
Tue, 23 Aug 2022 20:10:45 +0000 (20:10 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 25 Aug 2022 11:12:59 +0000 (08:12 -0300)
The patch "Bug 31313: Fix availability - OPAC
opac-detail" (70cb4e22c07) lead to
koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc
use the bundle_host method directly through the passed
Koha::Item object, thus the bundle_host field added by
this script is unused.

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
opac/opac-detail.pl

index ed224e0..a7289f3 100755 (executable)
@@ -738,10 +738,6 @@ else {
         }
 
 
-        if ( $item->in_bundle ) {
-            $item_info->{bundle_host} = $item->bundle_host;
-        }
-
         if ( C4::Context->preference('UseCourseReserves') ) {
             $item_info->{course_reserves} = GetItemCourseReservesInfo( itemnumber => $item->itemnumber );
         }