Bug 42707: Malformed Bootstrap dropdown in reports output

This patch updates the SQL report results markup in order to make sure
Bootstrap dropdowns are formatted correctly.

To test, apply the patch and locate or create a report which returns
patron card number, e.g.

SELECT cardnumber, borrowernumber FROM borrowers LIMIT 10

In the results, test the menus triggered when you click a card number or
a borrowernumber. The menu in the cardnumber column should be
formatted like the menu for borrowernumber.

Sponsored-by: Athens County Public Libraries
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 2ab181a7af)
Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com>
This commit is contained in:
Owen Leonard 2026-05-28 10:26:41 -04:00 committed by Baptiste Wojtkowski
parent a71ffe1263
commit c6828282bc
No known key found for this signature in database
GPG Key ID: 47A8A13E10BC0D40
1 changed files with 4 additions and 2 deletions

View File

@ -1385,9 +1385,11 @@
<div id="cardnumber_autolink" class="btn-group dropup autolink"
><a class="btn btn-link dropdown-toggle" role="button" data-bs-toggle="dropdown" href="#">[% cells.cell | $raw %] </a>
<ul class="dropdown-menu" role="menu">
<li
><a target="_blank" href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% cells.cell | $raw %]"><i class="fa fa-barcode" aria-hidden="true"></i> Check out</a></li
<li>
<a class="dropdown-item" target="_blank" href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% cells.cell | $raw %]"
><i class="fa fa-barcode" aria-hidden="true"></i> Check out</a
>
</li>
</ul>
</div>
</td>