From d929ef8951948189c76170b992d3d3eccda9b27d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 24 Apr 2023 15:19:37 +0200 Subject: [PATCH] Bug 30708: Allow modifying attribute linked with AV to another value If a value is not in the AV list, or if it differs slightly, they would like to force the modification of the value, without creating a new authorised value. Note that this could be a candidate for an option at the attribute level if there are different needs (ie. for some attributes we don't want to allow an other value). Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: BULAC - http://www.bulac.fr/ Signed-off-by: Heather Hernandez Signed-off-by: Laurence Rault Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- .../js/vue/components/Preservation/TrainsFormAddItem.vue | 7 +++++++ t/cypress/integration/Preservation/Trains.ts | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsFormAddItem.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsFormAddItem.vue index 0b1f010998..cfff853de4 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsFormAddItem.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsFormAddItem.vue @@ -46,6 +46,13 @@ :options=" av_options[attribute.option_source] " + taggable + :create-option=" + attribute => ({ + value: attribute, + description: attribute, + }) + " /> diff --git a/t/cypress/integration/Preservation/Trains.ts b/t/cypress/integration/Preservation/Trains.ts index fb5203e73b..b7a515c76b 100644 --- a/t/cypress/integration/Preservation/Trains.ts +++ b/t/cypress/integration/Preservation/Trains.ts @@ -103,7 +103,7 @@ function get_train_items() { processing_attribute: processing_attributes[0], processing_attribute_id: processing_attributes[0].processing_attribute_id, - value: "Paraguay", + value: "Not a country", }, { processing_attribute: processing_attributes[1],