]> git.koha-community.org Git - koha.git/commit
Bug 13254 - Delete record don't wait for confirmation
authorRafal Kopaczka <rkk0@poczta.onet.pl>
Fri, 14 Nov 2014 13:06:22 +0000 (14:06 +0100)
committerMason James <mtj@kohaaloha.com>
Thu, 26 Mar 2015 00:28:59 +0000 (13:28 +1300)
commit94636a8a196357171bf6b01cb45c5d97530bb40b
tree9d2cb300eb8bab699b48924494052bbf4eebe7f4
parentede633b71435976d49bc8323d1ea5446d189868e
Bug 13254 - Delete record don't wait for confirmation

In some cases (eg. when Staf Client Search is active), when user choose
Edit->Delete record on record tool bar, browser don't wait for
confirmation and goes immediately to delete record.

To reproduce:
1. Search for some biblio records and choose one without items attached.
2. Note that there, must be "Return to search results" box on left side,
bug works in that case, when in normal view everything work fine.
3. Click Edit->Delete record, watch that confirmation box shows, but
don't wait for OK and runs immediately. If you are fast enough to
click OK, then you get error as below, because record was deleted
earlier.

To test:
1. Apply patch.
2. Follow reproduce steps.
3. Check if waits for confirmation in all cases.
4. Check if deletes record after confirm.

Followed test plan. Patch behaves as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Confirmed the problem and that the patch fixes it.
Good catch!
Signed-off-by: Mason James <mtj@kohaaloha.com>
koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc