Bug 24941: Serials - Fix link to basket from acquisition details information
authorKatrin Fischer <katrin.fischer.83@web.de>
Sat, 28 Mar 2020 00:22:35 +0000 (01:22 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 3 Apr 2020 13:26:35 +0000 (14:26 +0100)
Adding orders from subscriptions makes acquisition information visible
in the serials module. In the table of acquisition data is a link back
to the basket - but this link is missing the basket number parameter -
it doesn't work. This patch fixes the TT variable to make it work.

To test:
- Add a subscription
- Add a new basket
- Add a order line using "Add from subscription"
- Go to the subscription details page, check the acquisitions tab
- Try the link to the basket - it should not work
- Apply patch
- Try the link again - now it should bring up the basket page with
  the order.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt

index 03a7bc9..75414fb 100644 (file)
                                             <td></td> [%# invoice %]
                                             <td>
                                                 [% IF CAN_user_acquisition_order_manage %]
-                                                    <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% order.basket.basketno | uri %]">[% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %])</a>
+                                                    <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% parent_order.basket.basketno | uri %]">[% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %])</a>
                                                 [% ELSE %]
                                                     [% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %])
                                                 [% END %]