@@ -, +, @@ --- Koha/UI/Table/Builder/Items.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/Koha/UI/Table/Builder/Items.pm +++ a/Koha/UI/Table/Builder/Items.pm @@ -72,7 +72,7 @@ Use it with: sub build_table { my ( $self, $params ) = @_; - my $patron = $self->params; + my $patron = $params->{patron}; my $items = Koha::Items->search( { itemnumber => $self->{itemnumbers} } ); @@ -86,7 +86,7 @@ sub build_table { holds => $item->biblio->holds->count, item_holds => $item->holds->count, is_checked_out => $item->checkout || 0, - nomod => $patron ? 0 : $patron->can_edit_item($item), + nomod => $patron ? !$patron->can_edit_item($item) : 0, }; push @items, $item_info; } --