From 81ef114494afab9bfb8649e12419c76ea8a71f8e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sat, 22 Aug 2020 14:11:45 +0200 Subject: [PATCH] Bug 25728: Don't prefill av's code Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/js/cataloging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js index 67eca4fcec..417a78ec6d 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js +++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js @@ -127,7 +127,7 @@ var Select2Utils = { var category = $(this).data("category"); $("#avCreate #new_av_category").html(category); $("#avCreate input[name='category']").val(category); - $("#avCreate input[name='value']").val(e.params.data.text); + $("#avCreate input[name='value']").val(); $("#avCreate input[name='description']").val(e.params.data.text); $(this).val($(this).find("option:first").val()).trigger('change'); -- 2.11.0