From 614ee4cd9e6b451de97f227d76ab392469438425 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sat, 22 Aug 2020 14:11:45 +0200 Subject: [PATCH 1/1] Bug 25728: Don't prefill av's code --- 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.20.1