Bugzilla – Attachment 122992 Details for
Bug 28727
"Edit item" button on moredetail should be enabled with edit_items permission
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28727: Show edit item link when user has edit items permission
Bug-28727-Show-edit-item-link-when-user-has-edit-i.patch (text/plain), 1.60 KB, created by
Andrew Fuerste-Henry
on 2021-07-20 19:44:58 UTC
(
hide
)
Description:
Bug 28727: Show edit item link when user has edit items permission
Filename:
MIME Type:
Creator:
Andrew Fuerste-Henry
Created:
2021-07-20 19:44:58 UTC
Size:
1.60 KB
patch
obsolete
>From 44d879d513054f545cf6c426166c898a108e9c90 Mon Sep 17 00:00:00 2001 >From: Andrew Fuerste-Henry <andrew@bywatersolutions.com> >Date: Tue, 20 Jul 2021 19:42:41 +0000 >Subject: [PATCH] Bug 28727: Show edit item link when user has edit items > permission > >To test: >1: log in as a user with edit_items but not edit_catalogue >2: confirm you do not get an Edit Item link on moredetail.pl >3: apply patch, restart, reload >4: confirm link now shows >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >index 38c94c5dba..802c38bb8c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >@@ -89,7 +89,7 @@ > <div class="listgroup"> > <h3 id="item[% ITEM_DAT.itemnumber | html %]">Barcode [% ITEM_DAT.barcode | html %] [% IF ( ITEM_DAT.notforloantext ) %][% ITEM_DAT.notforloantext | html %] [% END %]</h3> > >- <h4>Item information [% IF ( CAN_user_editcatalogue_edit_catalogue ) %][% UNLESS ( ITEM_DAT.nomod ) %] >+ <h4>Item information [% IF ( CAN_user_editcatalogue_edit_items ) %][% UNLESS ( ITEM_DAT.nomod ) %] > [% IF ( CAN_user_editcatalogue_edit_items ) %] > <a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% ITEM_DAT.biblionumber | uri %]&itemnumber=[% ITEM_DAT.itemnumber | uri %]"><i class="fa fa-pencil"></i> Edit item</a> > [% END %] >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28727
:
122992
|
123209
|
123726
|
123727