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 %itemnumbers_to_idx = map { $self->{itemnumbers}->[$_] => $_ } 0..$#{$self->{itemnumbers}};
77
    my %itemnumbers_to_idx = map { $self->{itemnumbers}->[$_] => $_ } 0..$#{$self->{itemnumbers}};
78
78
Lines 89-95 sub build_table { Link Here
89
            holds          => $item->biblio->holds->count,
89
            holds          => $item->biblio->holds->count,
90
            item_holds     => $item->holds->count,
90
            item_holds     => $item->holds->count,
91
            is_checked_out => $item->checkout || 0,
91
            is_checked_out => $item->checkout || 0,
92
            nomod          => $patron ? 0 : $patron->can_edit_item($item),
92
            nomod          => $patron ? !$patron->can_edit_item($item) : 0,
93
        };
93
        };
94
        push @items, $item_info;
94
        push @items, $item_info;
95
    }
95
    }
96
- 

Return to bug 20256