Bug 37450: Fix 'Close basket' button from list of baskets
To test:
1) In acquisitions, have a vendor with an item (or items) in their basket. Search for this vendor.
2) From the actions column, select the arrow and then press 'Close this basket'
3) Clicking on this option will not close the basket and brings us to the wrong page
4) Apply patch
5) Try to close the basket again, and this time, it is closed successfully
Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit a55e20e8c1)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
d0cb0ff57b
commit
be4cc23a1b
|
|
@ -192,7 +192,14 @@
|
|||
[% IF basket.uncertainprices %]
|
||||
<li><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% basket.booksellerid | uri %]&owner=1"><i class="fa-solid fa-dollar-sign"></i> Uncertain prices</a></li>
|
||||
[% ELSIF basket.total_items && !basket.is_standing %]
|
||||
<li><a href="/cgi-bin/koha/acqui/basket.pl?op=close&basketno=[% basket.basketno | uri %]&booksellerid=[% basket.booksellerid | uri %]"><i class="fa fa-times-circle"></i> Close this basket</a></li>
|
||||
<form method="post" action="/cgi-bin/koha/acqui/basket.pl">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<input type="hidden" id="basketno" value="[% basket.basketno | html %]" name="basketno" />
|
||||
<input type="hidden" value="cud-close" name="op" />
|
||||
<input type="hidden" name="booksellerid" value="[% basket.booksellerid | html %]" />
|
||||
<input type="hidden" name="confirm" value="1" />
|
||||
<li><button type="submit" class="btn btn-default"><i class="fa fa-times-circle"></i> Close this basket</button></li>
|
||||
</form>
|
||||
[% END %]
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue