Bug 37186: Fixed deletion of rotating collections
To test:
1. Tools -> Rotating collections
2. Create a rotating collection
3. In new collection Actions -> Delete
4. Notice collection is not deleted
5. Apply patch
6. In new collection Actions -> Delete
7. Notice collection is deleted
Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 37cb3f35a3)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
a4706d6c77
commit
e9e4d37047
|
|
@ -63,12 +63,7 @@
|
|||
<li><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId | uri %]"><i class="fa fa-plus"></i> Manage items</a></li>
|
||||
<li><a href="/cgi-bin/koha/rotating_collections/transferCollection.pl?colId=[% collectionsLoo.colId | uri %]"><i class="fa-solid fa-right-left"></i> Transfer</a></li>
|
||||
<li><a href="/cgi-bin/koha/rotating_collections/editCollections.pl?op=edit&colId=[% collectionsLoo.colId | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a></li>
|
||||
<li><form id="delete_rc" action="/cgi-bin/koha/rotating_collections/editCollections.pl" method="post">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<input type="hidden" name="op" value="cud-delete">
|
||||
<input type="hidden" name="colId" value="[% collectionsLoo.colId | html %]">
|
||||
<a class="confirmdelete"><i class="fa fa-trash-can"></i> Delete</a>
|
||||
</form>
|
||||
<li><a class="confirmdelete submit-form-link" data-action="/cgi-bin/koha/rotating_collections/editCollections.pl" data-method="post" data-op="cud-delete" data-col-id="[% collectionsLoo.colId | html %]"><i class="fa fa-trash-can"></i> Delete</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
@ -97,6 +92,7 @@
|
|||
[% INCLUDE 'datatables.inc' %]
|
||||
[% Asset.js("js/tools-menu.js") | $raw %]
|
||||
[% Asset.js("js/rotating-collections.js") | $raw %]
|
||||
[% Asset.js("js/form-submit.js") | $raw %]
|
||||
[% END %]
|
||||
|
||||
[% INCLUDE 'intranet-bottom.inc' %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue