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 1906-1912 Link Here
1906
                            "data": "lost_status:last_seen_date:return_claim.patron",
1906
                            "data": "lost_status:last_seen_date:return_claim.patron",
1907
                            "title": _("Status"),
1907
                            "title": _("Status"),
1908
                            "searchable": false,
1908
                            "searchable": false,
1909
                            "orderable": true,
1909
                            "orderable": false,
1910
                            "render": function(data, type, row, meta) {
1910
                            "render": function(data, type, row, meta) {
1911
                                if ( row.lost_status == bundle_lost_value ) {
1911
                                if ( row.lost_status == bundle_lost_value ) {
1912
                                    let out = '<span class="lost">' + _("Last seen") + ': ' + $date(row.last_seen_date) + '</span>';
1912
                                    let out = '<span class="lost">' + _("Last seen") + ': ' + $date(row.last_seen_date) + '</span>';
1913
- 

Return to bug 35963