Skip to content

Commit

Permalink
Bug 18652: Get rid of tt directive in translation for uncertainprice.tt
Browse files Browse the repository at this point in the history
Translation tool shows toe following for ncertainprice.tt
0; url=[% scriptname %]?booksellerid=[% booksellerid %]

This patch fixes it.

To test:
- Apply patch
- Verify that code change makes sense
- Verify that Home > Acquisitions > [vendor] > Uncertain prices for [vendor]
  works as before

- Additional test (for a langunage 'aa-AA')
  perl translate create aa-AA
  verify that line 41 no longer appears in aa-AA-staff-prog.po

Amended to switch from BLOCK to a template variable, see comment #5

Signed-off-by: Owen Leonard <[email protected]>

Signed-off-by: Jonathan Druart <[email protected]>
(cherry picked from commit 2ee8280)
Signed-off-by: Fridolin Somers <[email protected]>
(cherry picked from commit 4d42774)
Signed-off-by: Katrin Fischer <[email protected]>
  • Loading branch information
veronch authored and KohaAloha committed Sep 20, 2017
1 parent 635c529 commit 697202c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ function check(form) {

[% INCLUDE 'acquisitions-toolbar.inc' %]
[% IF ( validate ) %]
<META HTTP-EQUIV=Refresh CONTENT="0; url=[% scriptname %]?booksellerid=[% booksellerid %]">
[% SET metacontent = '0; url=' _ scriptname _ '?booksellerid=' _ booksellerid %]
<META HTTP-EQUIV=Refresh CONTENT="[% metacontent %]">
[% ELSE %]
[% IF ( booksellername ) %]
<h1>Orders with uncertain prices for vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a></h1>
Expand Down

0 comments on commit 697202c

Please sign in to comment.