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

(-)a/Koha/UI/Table/Builder/Items.pm (-3 / +2 lines)
Lines 72-78 Use it with: Link Here
72
sub build_table {
72
sub build_table {
73
    my ( $self, $params ) = @_;
73
    my ( $self, $params ) = @_;
74
74
75
    my $patron = $self->params;
75
    my $patron = $params->{patron};
76
76
77
    my $items = Koha::Items->search( { itemnumber => $self->{itemnumbers} } );
77
    my $items = Koha::Items->search( { itemnumber => $self->{itemnumbers} } );
78
78
Lines 86-92 sub build_table { Link Here
86
            holds          => $item->biblio->holds->count,
86
            holds          => $item->biblio->holds->count,
87
            item_holds     => $item->holds->count,
87
            item_holds     => $item->holds->count,
88
            is_checked_out => $item->checkout || 0,
88
            is_checked_out => $item->checkout || 0,
89
            nomod          => $patron ? 0 : $patron->can_edit_item($item),
89
            nomod          => $patron ? !$patron->can_edit_item($item) : 0,
90
        };
90
        };
91
        push @items, $item_info;
91
        push @items, $item_info;
92
    }
92
    }
93
- 

Return to bug 20256