Main Koha release repository https://koha-community.org
Find a file
Jonathan Druart 29bc2b5832 Bug 22275: (bug 15836 follow-up) Fix class_sources.class_split_rule FK creation
18.06.00.060 will fail if custom Classification sources were created.

In that case we should use the 'generic' split rule.

Test plan:
% git checkout -b bug_22395_pre 3a0cba67f1
Reset the DB
Go to  Home › Administration › Classification sources
Create a custom "Classification filing rules"
Create a custom "Classification sources" using this filing rules
% git checkout master
% perl installer/data/mysql/updatedatabase.pl
=> Without this patch you will get:
DBD::mysql::db do failed: Cannot add or update a child row: a foreign key constraint fails (`koha_kohadev`.`#sql-33a_67`, CONSTRAINT `class_source_ibfk_2` FOREIGN KEY (`class_split_rule`) REFERENCES `class_split
_rules` (`class_split_rule`)) [for Statement "
            ALTER TABLE class_sources
            ADD CONSTRAINT class_source_ibfk_2 FOREIGN KEY (class_split_rule)
            REFERENCES class_split_rules (class_split_rule)
        "] at installer/data/mysql/updatedatabase.pl line 17104.

=> With this patch applied the FK will be created successfully
class_sources.class_split_rule will be set to "generic" for these custom values.

Signed-off-by: Oliver Behnke <oliver.behnke@aei.mpg.de>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-03-07 20:50:07 +00:00
acqui Bug 15774: (follow-up) Address QA issues 2019-03-07 20:37:05 +00:00
admin Bug 15774: (QA follow-up) Fix use statemenets 2019-03-07 20:37:06 +00:00
api/v1 Bug 22216: Make GET /patrons/{patron_id} staff only 2019-02-22 13:15:11 +00:00
authorities Bug 19994: Used Modern::Perl in Authorities perl scripts 2019-01-28 14:58:23 +00:00
basket
C4 Bug 20535: ModZebra called with $record with items stripped 2019-03-07 20:49:44 +00:00
catalogue Bug 20912: Rental Fees based on Time Period 2019-03-07 17:22:43 +00:00
cataloguing Bug 21206: Replace C4::Items::GetItem 2019-02-26 13:24:07 +00:00
circ Bug 17347: Ignore whitespace before and after on renewing 2019-02-11 18:30:10 +00:00
clubs
course_reserves
debian Bug 22397: Wrong message in koha-sip --start 2019-02-26 13:22:37 +00:00
docs Bug 7143: (follow-up) Update about page for new devs (Academy) 2019-02-19 13:52:14 +00:00
errors
etc Bug 22016: Always send CT field for SIP checkin, even if empty 2019-02-27 09:14:21 -05:00
ill Bug 20581: (follow-up) Passed value to status_alias 2019-02-22 14:31:31 +00:00
installer Bug 22275: (bug 15836 follow-up) Fix class_sources.class_split_rule FK creation 2019-03-07 20:50:07 +00:00
Koha Bug 15774: Remove unecessary returned value for ->delete 2019-03-07 20:37:06 +00:00
koha-tmpl Bug 16251: Fix value of material select for Rancor 008 widget 2019-03-07 20:49:30 +00:00
labels Bug 21206: Replace C4::Items::GetItem 2019-02-26 13:24:07 +00:00
members Bug 22120: Add price formattig to patron summary print 2019-02-11 18:30:10 +00:00
misc Bug 21206: Replace C4::Items::GetItem 2019-02-26 13:24:07 +00:00
offline_circ Bug 22049: (QA follow-up) update MarkIssueReturned call in process_koc.pl 2019-01-25 20:46:48 +00:00
opac Bug 20912: (QA follow-up) Warn patron of daily and hourly renewal fees 2019-03-07 17:29:58 +00:00
OpenILS
patron_lists Bug 19524: Use existing logged_in_user variable 2018-07-18 16:49:30 +00:00
patroncards Bug 21719: Fix typos 2018-11-08 02:18:46 +00:00
plugins
reports Bug 22278: Clear cache when creating new report groups or subgroups 2019-02-08 20:46:26 +00:00
reserve Bug 21206: Replace C4::Items::GetItem 2019-02-26 13:24:07 +00:00
reviews
rotating_collections
serials Bug 15774: (follow-up) fix rebase issues 2019-03-07 20:37:06 +00:00
services Bug 20019: use Modern::Perl in misc perl scripts 2018-02-05 09:47:08 -03:00
skel
suggestion
svc Bug 21206: Replace C4::Items::GetItem 2019-02-26 13:24:07 +00:00
t Bug 15774: (QA follow-up) Fix use statemenets 2019-03-07 20:37:06 +00:00
tags Bug 22036: Indented code where '^I' was written rather than an indent. 2019-01-17 02:23:28 +00:00
test
tmp/modified_authorities
tools Bug 21206: Replace C4::Items::GetItem 2019-02-26 13:24:07 +00:00
virtualshelves Bug 21206: Replace C4::Items::GetItem 2019-02-26 13:24:07 +00:00
xt Bug 21576: Keep compatibility with QA script 2018-10-26 17:09:52 +00:00
.editorconfig
.gitignore
.htaccess
.mailmap
.scss-lint.yml
about.pl
changelanguage.pl
fix-perl-path.PL
gulpfile.js Bug 21751: Replace fixFloat with HC-sticky to fix Chrome display 2019-02-04 14:13:35 +00:00
help.pl
INSTALL Bug 17626: Remove existing install instructions and link to the wiki pages instead 2016-11-22 11:29:07 +00:00
install-CPAN.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
Koha.pm Bug 15774: DBRev 18.12.00.022 2019-03-07 20:40:53 +00:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl Bug 21907: Fix article requests count for non-superlibrarians 2019-02-04 14:50:40 +00:00
Makefile.PL Bug 20174: Remove xml_sax.pl target from Makefile.pl 2019-02-15 18:42:48 +00:00
MANIFEST.SKIP
package.json
README
README.md
README.robots
rewrite-config.PL
yarn.lock Bug 19474: Convert staff client CSS to SCSS 2018-08-09 15:12:20 +00:00

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: This is a synced mirror of the official Koha repo.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo