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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 4 Dec 2020 14:32:56 +0000 (15:32 +0100)
commitc6263d078e9374b1712d7b2a452a1ccb614deaef
treee392d58d6baeba2ea4e2d2776f309e8218846b07
parent66b2bb7ca898007533f775a2bdc413c9d00c6ca7
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>
koha-tmpl/intranet-tmpl/prog/js/cataloging.js