From 697202c115a58cf3f94d867c5e7ba4ab929e8b7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20V=C3=A9ron?= Date: Mon, 22 May 2017 21:09:06 +0200 Subject: [PATCH] Bug 18652: Get rid of tt directive in translation for uncertainprice.tt 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 Signed-off-by: Jonathan Druart (cherry picked from commit 2ee82801c7a8686523f9c5e95b0f43d44e52e4ab) Signed-off-by: Fridolin Somers (cherry picked from commit 4d427740196bb0a9bcfe80787af8cdf769c06b76) Signed-off-by: Katrin Fischer --- .../intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt index 1853805fe0c..b9d850eb1ae 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt @@ -40,7 +40,8 @@ function check(form) { [% INCLUDE 'acquisitions-toolbar.inc' %] [% IF ( validate ) %] - + [% SET metacontent = '0; url=' _ scriptname _ '?booksellerid=' _ booksellerid %] + [% ELSE %] [% IF ( booksellername ) %]

Orders with uncertain prices for vendor [% booksellername %]