Koha/admin
Marcel de Rooy 4339291f44 Bug 20227: Check for categorycode in default_borrower_circ_rules
Fixes silent crash when adding the same category twice.
DBD::mysql::st execute failed: Duplicate entry 'ST' for key 'PRIMARY' [for Statement "
                INSERT INTO default_borrower_circ_rules
                    (categorycode, maxissueqty, maxonsiteissueqty, max_holds)
                    VALUES (?, ?, ?, ?)
            " with ParamValues: 0="ST", 1=undef, 2=undef, 3="3"] at /usr/share/koha/devclone/admin/smart-rules.pl line 309.

(Line number affected by bug 15524.)

Very trivial solution.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2018-02-16 14:05:18 -03:00
..
searchengine/elasticsearch Bug 19481: Set default sort options as sortable in ES default mappings 2017-11-26 12:59:51 -03:00
add_user_search.pl
admin-home.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
aqbudgetperiods.pl Bug 19328: Internal server error because of missing currency 2017-10-11 13:05:31 -03:00
aqbudgets.pl Bug 18789: Send Koha::Patron object to the templates 2018-02-16 13:03:58 -03:00
aqcontract.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
aqplan.pl Bug 20185: Remove warnings from aqplan.pl 2018-02-16 13:03:58 -03:00
audio_alerts.pl
auth_subfields_structure.pl Bug 12227: Remove the demo functionality 2017-12-11 11:34:20 -03:00
auth_tag_structure.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
authorised_values.pl
authtypes.pl
biblio_framework.pl Bug 19096: Make Default authoritative in core modules 2017-12-07 14:44:15 -03:00
branch_transfer_limits.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
branches.pl Bug 16735: Migrate library search groups into the new hierarchical groups 2018-02-12 15:41:25 -03:00
categories.pl
check_budget_parent.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
check_parent_total.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
checkmarc.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
cities.pl
classsources.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
clone-rules.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
columns_settings.pl
columns_settings.yml Bug 11976: Add Publication date to subscription table (opac) + column settings 2017-12-21 13:21:11 -03:00
currency.pl
didyoumean.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
edi_accounts.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
edi_ean_accounts.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
fieldmapping.pl
import_export_framework.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
item_circulation_alerts.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
items_search_field.pl
items_search_fields.pl
itemtypes.pl Bug 12768: Replacement cost and processing fee management 2017-10-20 17:14:33 -03:00
koha2marclinks.pl Bug 10306: (QA follow-up) More feedback for admins in koha2marclinks 2017-12-07 14:44:15 -03:00
library_groups.pl Bug 20157: Save the features that have been checked 2018-02-12 15:42:21 -03:00
localization.pl
marc_subfields_structure.pl Bug 12227: Remove the demo functionality 2017-12-11 11:34:20 -03:00
marctagstructure.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
matching-rules.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
oai_set_mappings.pl
oai_sets.pl
patron-attr-types.pl
preferences.pl Bug 12227: Remove the demo functionality 2017-12-11 11:34:20 -03:00
printers.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
smart-rules.pl Bug 20227: Check for categorycode in default_borrower_circ_rules 2018-02-16 14:05:18 -03:00
sms_providers.pl
sru_modmapping.pl
systempreferences.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
transport-cost-matrix.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
usage_statistics.pl
z3950servers.pl