]> git.koha-community.org Git - koha.git/commit
Bug 24616: Do not save form if user press cancel
authorEmmi Takkinen <emmi.takkinen@koha-suomi.fi>
Tue, 1 Nov 2022 07:21:57 +0000 (09:21 +0200)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Tue, 7 Feb 2023 15:23:25 +0000 (15:23 +0000)
commit2befd32e7b8b0595dd51bf1c2f915c72a888b5eb
tree2f3e6087243d782bdaf1632be5a166c49c6e8611
parentd58fad747981f43e5ae4da072936f410b437db5d
Bug 24616: Do not save form if user press cancel

If one starts to copy a notice but then cancels
this when pop-up is displayed, changes are still
saved. This patch fixes this.

To test:
1. Copy notice to a library where it already exists
2. Press save and then cancel when pop-up is
displayed
=> Form and changes are still saved
3. Apply this patch.
4. Repeat steps 1. and 2.
=> Form is no longer saved

Sponsored-by: Koha-Suomi Oy
Signed-off-by: ml-inlibro <marie-luce.laflamme@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit a99f2e65301922c15aa7aa1146ee6f0e6b68aea9)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/js/letter.js