Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
Jonathan Druart f1e156453a Bug 15840: Catch errors if userid already exists when importing patrons
Import borrowers tool explodes if userid already exists. This error
should be caught to avoid the script to explodes.

TEST PLAN
---------
1) back up DB
2) drop DB, create empty DB
3) Apply patch 15842
4) web install all the sample data
5) login as system user and import patron data
   -- sample provided to trigger error.
   -- you will get a DBIx::class exception
      "Duplicate entry ' for key 'userid'"
6) Apply this patch
7) Repeat steps 2-5
   -- patrons won't be inserted but an error
      will be nicely displayed in the error list.
8) run koha qa test tools

Note that it would be easy to insert the patrons anyway and generate a
userid based on the surname and firstname.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
2016-03-21 21:24:00 +00:00
..
automatic_item_modification_by_age.tt Bug 16021 - Use Font Awesome icons on automatic item modifications by age page 2016-03-12 23:25:20 +00:00
batch_delete_records.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
batch_record_modification.tt Bug 15319: Move marcPreview modal div to avoid duplication 2015-12-30 14:47:51 +00:00
batchMod-del.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
batchMod-edit.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
batchMod.tt Bug 10887: Batch item deletion -- doesn't need Use default values section 2015-04-08 11:09:08 -03:00
cleanborrowers.tt Bug 15598: Also fixing space near exclamation mark in other files 2016-01-27 05:19:38 +00:00
csv-profiles.tt Bug 12404: Add some documentation in the help page. 2015-04-27 10:43:23 -03:00
export.tt Bug 15493: Use the correct CSV profile when exporting records from the export tool 2016-01-07 18:32:55 +00:00
holidays.tt Bug 12072: Make datepicker and templates to be aware of dmydot format 2015-11-19 13:15:19 -03:00
import_borrowers.tt Bug 15840: Catch errors if userid already exists when importing patrons 2016-03-21 21:24:00 +00:00
inventory.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
koha-news.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
letter.tt Bug 16048 [Follow-up] Making notices actions buttons 2016-03-11 23:01:39 +00:00
manage-marc-import.tt Bug 15927 - Remove use of <tr class="highlight"> for alternating row colors 2016-03-02 22:07:13 +00:00
marc_modification_templates.tt Bug 15867: Move MARC modification templates JavaScript into separate file 2016-03-02 03:19:30 +00:00
modborrowers.tt Bug 15373: More changes of Zip to ZIP on intranet 2015-12-30 16:30:35 +00:00
overduerules.tt Bug 15827 - Unfriendly message when saving overdue notice/status triggers 2016-02-24 03:23:54 +00:00
picture-upload.tt Bug 15635: Koha::Patron::Images - Remove PutPatronImage 2016-03-04 12:53:00 +00:00
quotes-upload.tt Bug 16033 - Quotes upload preview broken for 973 days 2016-03-11 15:27:20 +00:00
quotes.tt Bug 15237: Quote of the day: Better translatibility for editor and help 2015-12-29 23:57:52 +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 14321: Integrate Upload.pm into Koha 2015-09-25 12:02:52 -03:00
tools-home.tt Bug 11023: Automatic item modification by age (Was Toggle "new" status") 2016-03-02 22:56:31 +00:00
upload-images.tt Bug 14321: Integrate Upload.pm into Koha 2015-09-25 12:02:52 -03:00
upload.tt Bug 14321: [QA Follow-up] Additional QA requests 2015-09-25 12:02:52 -03:00
viewlog.tt Bug 15927 - Remove use of <tr class="highlight"> for alternating row colors 2016-03-02 22:07:13 +00:00