Bug 14966: Table header broken at detail.tt
authorRafal Kopaczka <rkk0@poczta.onet.pl>
Tue, 6 Oct 2015 12:57:52 +0000 (14:57 +0200)
committerLiz Rea <wizzyrea@gmail.com>
Thu, 29 Oct 2015 22:33:42 +0000 (11:33 +1300)
For user without item edit permission, table at catalogue/detail.pl is
corrupted.

Test plan:
1) Log in as staff member, without edit item permission.
2) Go to biblio view, with items attached:
/cgi-bin/koha/catalogue/detail.pl?biblionumber=X. Confirm that table
does not display correctly.
3) Apply patch.
4) Repeat steps 1 and 2. Confirm patch works.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 390233a10c789a241f948f0f41df92fda3e51052)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
(cherry picked from commit bacb9773170cf3c37c3e2e0b21ee23c78b6ce502)
Signed-off-by: Liz Rea <wizzyrea@gmail.com>

koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

index 5d40dd1..34e0c15 100644 (file)
@@ -805,8 +805,6 @@ function verify_images() {
                 [% END %]
                 [% IF CAN_user_editcatalogue_edit_items and not item.cannot_be_edited %]
                     <td><a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% item.biblionumber %]&itemnumber=[% item.itemnumber %]#edititem">Edit</a></td>
-                [% ELSE %]
-                    <td></td>
                 [% END %]
                 </tr>
             [% END %]