]> git.koha-community.org Git - koha.git/commit
Bug 10439: fix bug preventing the library for a notice from being changed
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 10 Jun 2013 12:05:32 +0000 (14:05 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 2 Jul 2013 17:56:06 +0000 (14:56 -0300)
commita2e89edf43b2946da0986a5c83b04a60dea04061
treeea280a834b85ee3b353568b23d21f4e5d3c2edbf
parentab3163564e91921222c153897f786551fe59647e
Bug 10439: fix bug preventing the library for a notice from being changed

2 javascript functions should be apply only in a specific case, not for all
views.

Test plan:

- Switch on the IndependentBranches pref and log
  in as a superlibrarian.
- Try to change the library for a notice. Before the patch,
  no change is applied.
- Try to create a new notice, changing the library from
  default in the process.  Before the patch, the notice
  is not created.

The bug can also be reproduced when IndependentBranches is
off, in which case the staff user need not be a superlibrarian.

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 77a5e3e365a50b02c9f224d731e05de90fc667c9)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Test plan works as advertised.
koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt