Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
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
..
batch_delete_records.tt Bug 12403 [Follow-up] Batch record deletion 2014-11-07 15:26:02 -03:00
batchMod-del.tt Bug 12660:Correct mispelling of accomodate in comments 2014-08-05 20:20:23 -03:00
batchMod-edit.tt Bug 12180 - Remove HTML from batchMod.pl 2014-08-19 09:28:07 -03:00
batchMod.tt Bug 9533: batch item modification form now shows default field values only by request 2013-07-05 15:52:26 +00:00
cleanborrowers.tt Bug 11975: improve the batch patron deletion code 2014-05-09 14:32:21 +00:00
csv-profiles.tt Bug 11812 - Add missing "required" indicator to fields which are required 2014-10-22 14:04:43 -03:00
export.tt Bug 13308: The output format should be 'iso2709' instead of 'marc' 2014-11-20 18:10:44 -03:00
holidays.tt Bug 13289: document.write breaks DataTables 2014-11-19 21:33:01 -03:00
import_borrowers.tt Bug 12929: Restore behavior before bug 12716 2014-10-14 11:25:19 -03:00
inventory.tt Bug 12909 - item withdrawn is missing in inventory results 2014-11-21 15:27:15 -03:00
koha-news.tt Bug 12862: Staff client tweaks related to obsolete language="javascript" 2014-10-18 11:13:01 -03:00
letter.tt Bug 13215: The same letter code can be used for several libraries 2014-11-27 11:42:14 -03:00
manage-marc-import.tt Bug 11876 - Add a diff view for staged MARC records. 2014-10-31 14:24:58 -03:00
marc_modification_templates.tt Bug 11413: Reflect the changes to the interface 2014-11-14 12:05:44 -03:00
modborrowers.tt Bug 11812 - Add missing "required" indicator to fields which are required 2014-10-22 14:04:43 -03:00
overduerules.tt Bug 11742: A letter code should be unique. 2014-06-23 15:19:55 -03:00
picture-upload.tt Bug 9310 - Patron image upload template corrections 2013-01-17 21:53:42 -05:00
quotes-upload.tt Bug 12138 - Use placeholders in translatable Javascript strings 2014-04-27 21:24:04 +00:00
quotes.tt Bug 12163 - fix adding new quotes 2014-05-06 16:03:23 +00:00
scheduler.tt Bug 8181 [REVISED] Replace DynArch calendar widget with jQueryUI version 2012-06-25 18:26:26 +02:00
showdiffmarc.tt Bug 11876 [Follow-up] Add a diff view to staged MARC Records 2014-10-31 14:25:11 -03:00
stage-marc-import.tt Bug 8015: Add MARC Modifications Templates 2013-10-31 22:47:08 +00:00
tools-home.tt Bug 12403 [Follow-up] Batch record deletion 2014-11-07 15:26:02 -03:00
upload-images.tt Bug 11785 - Use validation plugin when uploading local cover images 2014-02-20 16:56:21 +00:00
viewlog.tt Bug 11331 - CSV export for viewlog.pl is missing newlines - followup 2014-08-05 20:26:02 -03:00