Bug 12438 - Bad encoding in acquisition basket
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 17 Jun 2014 14:38:54 +0000 (16:38 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 15 Jul 2014 21:55:11 +0000 (18:55 -0300)
commit9fe36e0c705b958859babe565517554b722c66cd
tree0899a05adee2290bbb971d2b11d92b915d2b27e4
parent499ff3618c4507619a84bd793727f51f5889e5b4
Bug 12438 - Bad encoding in acquisition basket

We noticed a bad encoding (diacritics replaced by <?>) in acquisition basket when updating a server to Debian Wheezy.
We found it comes from a query containing biblio.title twice.
Maybe the mysql newer version creates this side-effect.

Test plan :
- Create an order on a record containing a diacritic in title
- Look at the basket : cgi-bin/koha/acqui/basket.pl?basketno=x
=> Without the patch the record title is bad encoded (with <?>)
=> With this patch the record title is well encoded
- Check also basket CSV export

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Good catch!
Works as expected, passes tests and QA script.
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Duplicated biblio.title is a (minor) bug, and should be removed.

The side-effect of it solving an encoding problem might be seen
as problematic: it hides a real problem.
The efforts on 11944 actually solve this encoding problem (11944
merged into master actually fixes this), so I'm pushing it, for
a short term solution for stable, with the hope that we will soon
have 11944 pushed.
BTW, non-diacritic but non-ASCII characters are not broken either.
C4/Acquisition.pm