C4::Charset call C4::Context without use it ; so when a script call SetMarcUnicodeFlag it returen : "Can't locate object method "preference" via package "C4::Context" (perhaps you forgot to load "C4::Context"?) at /home/gboisson/workspace/versions/community/C4/Charset.pm line 330".
Created attachment 25170 [details] [review] proposed patch proposed patch
Created attachment 25241 [details] [review] Bug 11730: C4-Charset call C4-Context without use it Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Created attachment 25266 [details] [review] Bug 11730: C4-Charset call C4-Context without use it Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Pushed to master. Thanks, Stéphane!
BTW, this bug inspired me to open bug 11790.
Pushed to 3.14.x, will be in 3.14.07
Pushed to 3.12.x will be in 3.12.13