Bug 27128: (bug 25728 follow-up) Don't prefill av's code
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 1 Dec 2020 15:22:15 +0000 (16:22 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 7 Dec 2020 08:17:03 +0000 (09:17 +0100)
commit08e01e3133c12358bd8f30320e5453b0035b6c33
tree0cb6db90a7f548e875c5ec8bae7446b4becc7a0d
parent7fc3f042e1f1f64ef2704869d8a6f95e1cd4205e
Bug 27128: (bug 25728 follow-up) Don't prefill av's code

Bug 25728 patch "Don't prefill av's code" does not work.
Calling empty val() retruns the attribut.
Should be val('').

Test plan :
1) Without patch
2) Edit a record
3) Edit a subfield with AV
4) Enter a new value to create it
5) You see the modal popup, edit and save
6) Enter another new value to create it
7) You see the modal popup => value is prefilled
8) Re-do test plan with patch (+ clear JS cache) => value is empty

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit c6263d078e9374b1712d7b2a452a1ccb614deaef)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/js/cataloging.js