Koha/koha-tmpl/intranet-tmpl/prog/en
Jonathan Druart 6f599652b1 Bug 13215: The same letter code can be used for several libraries
This patch fixes a major issue introduced by the
commit 5c4fdcf Bug 11742: A letter code should be unique.

The interface should let the possibility to create a default template
letter and some specific ones, with the same letter code (letter.code).

The patches submitted on bug 11742 tried to fix an issue based on a
(very bad) assumption: letter.code should be considered as a primary key and
should be uniq.

This patch reintroduces this behavior.
Note that the interface will block a letter code used in different
module (this is consistent not to have the same letter code used for different
needs).

This patch is absolutely not perfect, it just tries to change as less
change as possible and to use new tested subroutines.

Test plan:
1/ Verify that the problem raised on bug 11742 does not appears anymore.
2/ Verify there are no regression on adding, editing, copying, deleting
letters.
3/ Verify you are allowed to create a default letter template with a letter
code and to reuse for a specific letter (i.e. for a given library).

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-11-27 11:42:14 -03:00
..
css Bug 13151 - staff marc preview not wrapping 2014-11-21 15:04:00 -03:00
data
includes Bug 11271 - Serials table off the screen in smaller viewports 2014-11-21 20:29:52 -03:00
js Bug 13293 - Regression: Override renewal limit option broken with AJAX circ 2014-11-22 11:15:33 -03:00
lib/yui Bug 13139 - Move treeview jQuery plugin outside of language-specific directory 2014-10-27 12:36:53 -03:00
modules Bug 13215: The same letter code can be used for several libraries 2014-11-27 11:42:14 -03:00
xslt Bug 13151 - staff marc preview not wrapping 2014-11-21 15:04:00 -03:00
columns.def Bug 11673: columns.def has swapped last and first name of alt contact 2014-08-07 16:17:21 -03:00