Koha/tools
Jonathan Druart 605f42a721 Bug 14141: Do not let edit the branch when updating/copying notice
If a user modify the library when he's updating a notice, the notice
will be duplicated, instead of modified.

To reproduce:
1/ Go on the notice & slips tools (tools/letter.pl)
2/ Create a notice A for library L1
3/ Edit this notice and update the library with L2
4/ On the list view, you will observe that 2 notices A now exist, one
for L1 and one for L2.

The code in tools/letters.pl should be rebuilt completely, it becomes a
house of cards. To prevent this bug, I suggest to not let the user
modify the library value on editing a notice.
It cans be done by copying the notice to another library and remove the
original one.
Counter patch welcomed.

Test plan:
1/ Go on the notice & slips tools (tools/letter.pl).
2/ Create a notice A for library L1.
3/ Edit this notice: you are not able to modify the library anymore.
4/ Copy the notice to library L2. You are not able to modify the library
neither.

Works ok.

Signed-off-by: Amit Gupta <amit.gupta@informaticsglobal.com>
Signed-off-by: Nick Clemens <nick@quecheelibrary.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
2015-10-02 14:25:05 -03:00
..
csv-profiles
quotes Bug 14440: get_template_and_user can not have an empty template_name (quote*_ajax.pl) 2015-06-25 14:41:27 -03:00
ajax-inventory.pl
background-job-progress.pl
batch_delete_records.pl
batch_record_modification.pl
batch_records_ajax.pl
batchMod.pl Bug 12311: Do not return a lost item if modified in a batch 2015-10-02 11:04:59 -03:00
cleanborrowers.pl
copy-holidays.pl
csv-profiles.pl
exceptionHolidays.pl
export.pl Bug 14709: Do not access to C4::Context->userenv from the commandline 2015-09-02 10:02:33 -03:00
holidays.pl
import_borrowers.pl
inventory.pl Bug 10005: Inventory - Add an option to not check in items 2015-09-16 10:57:56 -03:00
koha-news.pl Bug 13813: Remove deprecated module C4::Dates from system 2015-09-18 12:40:55 -03:00
letter.pl Bug 14141: Do not let edit the branch when updating/copying notice 2015-10-02 14:25:05 -03:00
manage-marc-import.pl
marc_modification_templates.pl Bug 14098: Add copy_and_replace action to MMT 2015-09-07 11:17:13 -03:00
modborrowers.pl
newHolidays.pl Bug 14522: (QA followup) Koha complains about missing C4::Dates on master 2015-10-02 11:41:58 -03:00
overduerules.pl
picture-upload.pl
quotes-upload.pl
quotes.pl
scheduler.pl Bug 13813: Remove deprecated module C4::Dates from system 2015-09-18 12:40:55 -03:00
showdiffmarc.pl
stage-marc-import.pl Bug 14321: Integrate Upload.pm into Koha 2015-09-25 12:02:52 -03:00
tools-home.pl
upload-cover-image.pl Bug 14321: Integrate Upload.pm into Koha 2015-09-25 12:02:52 -03:00
upload-file.pl Bug 14321: [QA Follow-up] Changes for Upload.pm and upload-file.pl 2015-09-25 12:02:52 -03:00
upload.pl Bug 14321: Integrate Upload.pm into Koha 2015-09-25 12:02:52 -03:00
viewlog.pl Bug 13813: Remove deprecated module C4::Dates from system 2015-09-18 12:40:55 -03:00