From d13e49854afb5e7c22f8771a65b7a85d4575f488 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 3 Oct 2023 15:30:56 +0100 Subject: [PATCH] Bug 29002: Reset timeline object on cancel When cancelling out of the modal confirm, we should reset the changed object in the timeline rather than leaving it with the appearance that the edit succeeded. Signed-off-by: Martin Renvoize Signed-off-by: Janet McGowan Signed-off-by: Caroline Cyr La Rose Signed-off-by: Laurence Rault Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt index 4ae9e71da5..cd1db03a94 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt @@ -162,6 +162,8 @@ if (update_success) { update_success = 0; callback(data); + } else { + callback(null); } }); }, @@ -171,6 +173,8 @@ if (cancel_success) { cancel_success = 0; callback(item); + } else { + callback(null); } }); } -- 2.39.5