Koha/installer/data/mysql
Jacek Ablewicz 113adf68e5 Bug 16678: updatedatabase.pl 3.23.00.006 DB upgrade crashes if subscription_numberpatterns.numberingmethod contains parentheses
It seems that if subscription_numberpatterns.numberingmethod contains parentheses, updatedatabase.pl crashes when running the 3.23.00.006 DB upgrade snippet, with the following error:

[Mon Jun 6 09:06:54 2016] updatedatabase.pl: Unmatched ( in regex; marked by <-- HERE in m/ ( <-- HERE / at /home/koha/kohaclone/installer/data/mysql/updatedatabase.pl line 11498.

Steps to reproduce:
1/ Have a Koha DB version<3.23.00.006
2/ Create a subscription numbering with parentheses in it:
   ie "Vol. (Month, Year)" with pattern
       Vol. {X} ({Y}, {Z})
3/ Add some serials using that numbering method so that serialseq is filled in DB:
   ie  "Vol. 16 (February, 2015)"
4/ Run the updatedatabase.pl script either from the cli or just start the webinstaller
5/ The error is produced

To test:
1/ apply patch
2/ try to reproduce this issue once again, should be fixed now
3/ have a look at the code, make sure the changes are consistent

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Note: I have not tested the patch, but the diff looks good.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2016-06-10 16:39:26 +00:00
..
atomicupdate DBRev up for Bug 16200 - 'Hold waiting too long' fee has a translation 2016-05-31 08:56:42 +00:00
de-DE Bug 16382: Update German web installer sample files for 16.05 2016-05-16 17:48:19 +00:00
en Bug 13669: (alternative) use DBIx::RunSQL 2016-05-23 16:47:32 +00:00
es-ES Bug 16470: Update MARC21 es-ES frameworks to Update 22 (April 2016) 2016-05-16 17:57:21 +00:00
fr-CA Bug 14622 - New data in French Canadian for the web installer. Add "fr-CA" folder. 2016-05-04 14:03:37 +00:00
fr-FR Bug 15086: Creators layout and template sql has warnings 2016-05-16 17:33:04 +00:00
it-IT Bug 15086: Creators layout and template sql has warnings 2016-05-16 17:33:04 +00:00
mandatory Bug 14285: Bengali locale needs to be re-defined 2015-06-01 15:22:27 -03:00
nb-NO Bug 15086: Creators layout and template sql has warnings 2016-05-16 17:33:04 +00:00
pl-PL Bug 14199: Modify webinstaller sql files for marc21_orgcode plugin 2016-02-26 14:04:30 +00:00
ru-RU Bug 15086: Creators layout and template sql has warnings 2016-05-16 17:33:04 +00:00
uk-UA Bug 15086: Creators layout and template sql has warnings 2016-05-16 17:33:04 +00:00
audio_alerts.sql Bug 11431: (QA followup) Make audio alerts sql top level 2015-11-04 12:33:53 -03:00
backfill_statistics.pl Bug 16011: $VERSION - Remove comments 2016-03-24 17:20:29 +00:00
kohastructure.sql Bug 16565: Drop additional_fields and additional_field_values before creating them 2016-06-03 08:56:44 +00:00
labels_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
patroncards_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
sysprefs.sql Bug 16288: Remove unused EDI Shipping Budget syspref 2016-05-16 17:14:56 +00:00
update22to30.pl Bug 11398: A typo occurred with occured 2014-01-02 15:12:48 +00:00
updatedatabase.pl Bug 16678: updatedatabase.pl 3.23.00.006 DB upgrade crashes if subscription_numberpatterns.numberingmethod contains parentheses 2016-06-10 16:39:26 +00:00
userflags.sql Bug 13632: Populate user_flags and permissions tables in the web installer 2015-10-19 09:38:04 -03:00
userpermissions.sql Bug 7736: Support Ordering via Edifact EDI messages 2016-04-01 20:03:17 +00:00