]> git.koha-community.org Git - koha.git/commit
Bug 30708: Deal with deleted authorised value categories
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 16 Jun 2023 12:19:48 +0000 (14:19 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 18 Oct 2023 18:41:55 +0000 (15:41 -0300)
commitdec235fc5579e4832524f13b56e65c9de4fc13ba
treea344f18f47f019af46dddecf7836bf163cf501cb
parentaad36a8a61364b493002c3723ff11c3b070d919c
Bug 30708: Deal with deleted authorised value categories

If a AV category is renamed or deleted, the app will freeze with
"TypeError: av_match is undefined"

To prevent that we add an check to prevent the freeze and a warning in
the settings.

We could eventually add a FK on option_source, but the idea was to let
it flexible in case we want to add another source.

This bug can be considered a configuration error anyway.

Sponsored-by: BULAC - http://www.bulac.fr/
Signed-off-by: BULAC - http://www.bulac.fr/
Signed-off-by: Heather Hernandez <heather_hernandez@nps.gov>
Signed-off-by: Laurence Rault <laurence.rault@biblibre.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/SettingsProcessingsFormAdd.vue
koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsFormAddItem.vue