Bug 42701: Fix editable class on additem.pl
When editing the items on a biblio record, you should be able to select
an item to edit by clicking anywhere on the item row. This functionality
was lost because the "editable" class was not getting added correctly to
the table row. This patch fixes that issue.
To test:
1. Find a biblio record that has at least one item
2. Click on Edit > Manage items
3. In the table that lists editable items, click on any cell of any item
(other than the Actions button)
--> Nothing happens; the buttons to "Edit item" and "Delete item" do not
appear as expected
4. Apply patch and refresh the page
5. Repeat step 3
--> The buttons to "Edit item" and "Delete item" appear
Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
86b2eb9a3a
commit
db044d8552
|
|
@ -131,7 +131,7 @@
|
|||
[% END %]
|
||||
[% END %]
|
||||
[% IF can_be_edited %]
|
||||
[% tr_class.push = 'editable' %]
|
||||
[% tr_class.push('editable') %]
|
||||
[% END %]
|
||||
<tr id="row[% item.itemnumber | html %]" class="[% tr_class.join(' ') | html %]" title="[% tr_title | html %]">
|
||||
[% UNLESS can_be_edited %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue