From bbf209133e0503df28ab1ae004e560f42425918b 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 Signed-off-by: Jonathan Druart --- 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.39.5