[Koha-patches] [PATCH] [SIGNED-OFF] [3.2] Bug 6444 Corrects encoding problems in subscription-add.pl

Frédéric Demians f.demians at tamil.fr
Wed Jun 1 21:37:33 CEST 2011


From: Frédérick Capovilla <frederick.capovilla at sys-tech.net>

When searching for a vendor, if the vendor has accented character in its name,
the vendor's name that's added in the form of subscription-add.pl is encoded
incorrectly.

[2011.06.01] F. Demians. I confirm the bug and the solution

Signed-off-by: Frédéric Demians <f.demians at tamil.fr>
---
 .../en/modules/serials/acqui-search-result.tmpl    |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tmpl
index f5a1577..689d307 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tmpl
@@ -6,7 +6,7 @@
 function GetIt(aqbooksellerid,name)
 {
   opener.document.f.aqbooksellerid.value = aqbooksellerid;
-  opener.document.f.aqbooksellername.value = unescape(name);
+  opener.document.f.aqbooksellername.value = name;
   window.close();
 }
 </script>
@@ -33,7 +33,7 @@ function GetIt(aqbooksellerid,name)
         <tr>
         <!-- /TMPL_UNLESS -->
 			<td><!-- TMPL_VAR name="name" --></td>
-			<td><a href="#" onclick="GetIt(<!-- TMPL_VAR NAME="aqbooksellerid" -->,'<!--  TMPL_VAR escape="URL" NAME="name" -->')">Choose</a></td>
+			<td><a href="#" onclick="GetIt(<!-- TMPL_VAR NAME="aqbooksellerid" -->,$(this).parent().prev().text())">Choose</a></td>
 		</tr>
 	<!-- /TMPL_LOOP -->
 </table>
-- 
1.7.5.1



More information about the Koha-patches mailing list