]> git.koha-community.org Git - koha.git/commit
Bug 12295: fix Javascript error when merging authorities
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 20 May 2014 18:58:32 +0000 (14:58 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 5 Jun 2014 15:32:49 +0000 (15:32 +0000)
commit1857c444cc6666331eae34e9a99fa1eaa3f1c760
tree5432339be66af8872cbeb060966629cb2ba0a477
parent4b9409863eab03072212308e386b3dd622eb9b46
Bug 12295: fix Javascript error when merging authorities

Attempting to merge authorities results in the following error:
Uncaught SyntaxError: Unexpected token u authorities-home.pl:284
    showMergingInProgress authorities-home.pl:284
    (anonymous function) authorities-home.pl:297
    o jquery.js:2
    p.fireWith jquery.js:2
    e.extend.ready jquery.js:2
    c.addEventListener.B

This was the result of the upgrade of jquery-cookie by the patch
for bug 11369; newer versions of jquery-cookie changed the return of
$.cookie('foo') from null to undefined when the cookie is not present.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
No test plan, no errors.

Test
1. search some authorities
2. click merge, on browser dev console pops reported error message
'Unexpected token u authorities-home.pl...'
No way to marge auths
3. with pach applied, merging works again

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc