From d34d245f6cb305d0400da040ebdef72fa48e8ee4 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Wed, 17 Aug 2022 17:54:52 +0000 Subject: [PATCH] Bug 15348: (follow-up) Fix pre-selected date when editing from late orders page When editing the estimated delivery date from the late orders page, with multiple late orders, the selected date in the edit form would always be the same, not matching the edited date. With this page, the edited date will match what is shown in the form. Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi --- .../intranet-tmpl/prog/en/modules/acqui/lateorders.tt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt index cb7be2e9d5..f5be994aad 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt @@ -109,9 +109,9 @@ [% END %]

- [% estimated_delivery_date | $KohaDates %] + [% estimated_delivery_date | $KohaDates %] [% IF CAN_user_acquisition_order_manage %] - + Edit [% END %] @@ -409,10 +409,10 @@ e.preventDefault(); var ordernumber = $(this).data("ordernumber"); var modalTitle = $(this).attr("title") + " (order number " + ordernumber + ")"; - var date_text = $( "#delivery_date_" + ordernumber ).html(); + var date_text = $( "#delivery_date_" + ordernumber ).data("delivery_date"); $("#dateEditor .modal-title").text(modalTitle); $("#date_ordernumber").val(ordernumber); - $("#estimated_delivery_date").html( date_text ); + $("#estimated_delivery_date").val(date_text); $("#dateEditor").modal("show"); });