View | Details | Raw Unified | Return to bug 35963
Collapse All | Expand All

(-)a/Koha/REST/V1/Items.pm (-2 / +9 lines)
Lines 294-301 sub bundled_items { Link Here
294
    }
294
    }
295
295
296
    return try {
296
    return try {
297
        my $items_set = $item->bundle_items;
297
        my $items_set = Koha::Items->search(
298
        my $items     = $c->objects->search( $items_set );
298
            {
299
                'item_bundles_item.host' => $item_id,
300
            },
301
            {
302
                join => 'item_bundles_item',
303
            }
304
        );
305
        my $items = $c->objects->search($items_set);
299
        return $c->render(
306
        return $c->render(
300
            status  => 200,
307
            status  => 200,
301
            openapi => $items
308
            openapi => $items
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +1 lines)
Lines 1907-1913 Link Here
1907
                            "data": "lost_status:last_seen_date:return_claim.patron",
1907
                            "data": "lost_status:last_seen_date:return_claim.patron",
1908
                            "title": _("Status"),
1908
                            "title": _("Status"),
1909
                            "searchable": false,
1909
                            "searchable": false,
1910
                            "orderable": true,
1910
                            "orderable": false,
1911
                            "render": function(data, type, row, meta) {
1911
                            "render": function(data, type, row, meta) {
1912
                                if ( row.lost_status == bundle_lost_value ) {
1912
                                if ( row.lost_status == bundle_lost_value ) {
1913
                                    let out = '<span class="lost">' + _("Last seen") + ': ' + $date(row.last_seen_date) + '</span>';
1913
                                    let out = '<span class="lost">' + _("Last seen") + ': ' + $date(row.last_seen_date) + '</span>';
1914
- 

Return to bug 35963