]> git.koha-community.org Git - koha.git/commit
Bug 23681: (QA follow-up) Proper handling of default option
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 4 May 2022 11:36:17 +0000 (12:36 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 25 Aug 2022 11:41:06 +0000 (08:41 -0300)
commit3b1c271f78bb339800fac3f4c2b11ce4900f8e6a
treec65453967e8efd172df085d16d548ca3828ddf7a
parenta50553ff15815f878b148585ebca001e9723db94
Bug 23681: (QA follow-up) Proper handling of default option

This patch removes the 'can_be_added_manually' flag. Only non-system
restriction types can be added manually, so we exclude is_system instead
of having two flags. (And we set the 'Manual' that's added at install
time to default but not system).

We then add proper handling for setting the default manual restriction
type in the management page and set the dropdown list to use that value
by default.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/RestrictionType.pm
admin/restrictions.pl
installer/data/mysql/atomicupdate/bug_23681.pl [changed mode: 0644->0755]
installer/data/mysql/en/mandatory/patron_restrictions.yml
installer/data/mysql/kohastructure.sql
koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc
koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt
t/db_dependent/RestrictionType.t
t/db_dependent/RestrictionTypes.t