Koha/koha-tmpl/intranet-tmpl/prog/en/modules
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
..
acqui Bug 12775: Suggestions should be ordered by anyone 2014-11-21 16:13:27 -03:00
admin Bug 8337 System preferences for longoverdue cron 2014-11-21 18:55:40 -03:00
authorities Bug 12708 - Unexpected behaviour in IE 9 and lower when using openWindow 2014-08-19 09:31:25 -03:00
basket Bug 13037 - Staff client cart should exclude articles when sorting by title 2014-11-21 15:17:21 -03:00
batch
catalogue Bug 13036 - Exclude control columns from sorting on staff client catalog detail page 2014-11-21 19:50:21 -03:00
cataloguing Bug 10473: (RM followup) small wording change 2014-11-14 13:06:21 -03:00
circ Bug 12959 - Check in forgets to remember arbitrary backdating of returns setting 2014-11-25 15:42:21 -03:00
course_reserves Bug 12635 - Course reserves item list should use "Checked out" instead of "On Loan" 2014-08-07 11:03:56 -03:00
errors
help Bug 6681: (qa followup) document the existence of the sample files 2014-11-14 09:31:44 -03:00
installer Bug 12658: Wording of link text and translatability inside JavaScript 2014-08-15 15:36:11 -03:00
labels Bug 13162 - Label batch editor title sorting by default, rather then label number 2014-11-21 19:51:38 -03:00
members Bug 13133: Fix mangled titles on pay fines page 2014-11-21 20:40:31 -03:00
offline_circ Bug 12107 - Move checkboxes jQuery plugin outside of language-specific directory 2014-04-25 15:12:20 +00:00
patron_lists ug 11857 - Number of patrons on a patron list not accurate 2014-07-02 15:44:14 -03:00
patroncards Bug 5502 - Patron card category search field should be menu 2014-08-10 09:30:47 -03:00
plugins
reports Bug 13288: Fix filtering on the saved reports table 2014-11-20 09:54:28 -03:00
reserve Bug 12943 - Add patron branchcode to patron search results for holds 2014-11-21 16:00:13 -03:00
reviews
rotating_collections Bug 8836 [QA Followup] - Prevent multiple collections from having the same title 2014-11-06 15:12:20 -03:00
serials Bug 11271 - Serials table off the screen in smaller viewports 2014-11-21 20:29:52 -03:00
services Bug 12673: Remove CGI::scrolling_list from C4::Items.pm 2014-08-03 17:21:08 -03:00
sms
suggestion Bug 13229 - Suggestion date filters have a style problem 2014-11-20 09:56:34 -03:00
tags Bug 12138 - Use placeholders in translatable Javascript strings 2014-04-27 21:24:04 +00:00
test
tools Bug 13215: The same letter code can be used for several libraries 2014-11-27 11:42:14 -03:00
virtualshelves Bug 12405 - Search links on callnumber fails on intranet results page 2014-09-18 09:43:16 -03:00
about.tt Bug 13347: Update credits for Arabic translation 2014-11-27 10:51:16 -03:00
auth.tt
intranet-main.tt