Bugzilla – Attachment 167191 Details for
Bug 36789
Transform a booking into checkout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36789: Fix format when hours or minutes contain only one digit
Bug-36789-Fix-format-when-hours-or-minutes-contain.patch (text/plain), 2.12 KB, created by
Thibaud Guillot (thibaud_g)
on 2024-05-27 09:19:05 UTC
(
hide
)
Description:
Bug 36789: Fix format when hours or minutes contain only one digit
Filename:
MIME Type:
Creator:
Thibaud Guillot (thibaud_g)
Created:
2024-05-27 09:19:05 UTC
Size:
2.12 KB
patch
obsolete
>From 3b59c588e15dea511d4bc9d54b30700f5286d864 Mon Sep 17 00:00:00 2001 >From: Thibaud Guillot <thibaud.guillot@biblibre.com> >Date: Mon, 27 May 2024 11:18:38 +0200 >Subject: [PATCH] Bug 36789: Fix format when hours or minutes contain only one > digit > >--- > koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >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 08c41d135b2..4abb9e0ac64 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt >@@ -277,7 +277,7 @@ > let today = new Date(); > let due_date = new Date(); > due_date.setDate(today.getDate() + parseInt(bookings_period_length)); >- let formatted_date = `${due_date.getFullYear()}-${String(due_date.getMonth() + 1).padStart(2, '0')}-${String(due_date.getDate()).padStart(2, '0')} ${due_date.getHours()}:${due_date.getMinutes()}`; >+ let formatted_date = `${due_date.getFullYear()}-${String(due_date.getMonth() + 1).padStart(2, '0')}-${String(due_date.getDate()).padStart(2, '0')} ${String(due_date.getHours()).padStart(2, '0')}:${String(due_date.getMinutes()).padStart(2, '0')}`; > [% IF CAN_user_circulate_manage_bookings %] > result += '<button type="button" class="btn btn-default btn-xs edit-action" data-toggle="modal" data-target="#placeBookingModal" data-booking="'+row.booking_id+'" data-biblionumber="[% biblionumber | uri %]" data-itemnumber="'+row.item_id+'" data-patron="'+row.patron_id+'" data-pickup_library="'+row.pickup_library_id+'" data-start_date="'+row.start_date+'" data-end_date="'+row.end_date+'"><i class="fa fa-pencil" aria-hidden="true"></i> '+_("Edit")+'</button>'; > result += '<button type="button" class="btn btn-default btn-xs cancel-action" data-toggle="modal" data-target="#cancelBookingModal" data-booking="'+row.booking_id+'"><i class="fa fa-trash" aria-hidden="true"></i> '+_("Cancel")+'</button>'; >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36789
:
166213
|
167191
|
167242
|
167246
|
167268
|
167307
|
167309
|
167311
|
167368
|
167369
|
167602
|
167906
|
167907
|
170198
|
171553
|
171554
|
171555
|
172058
|
172059
|
172060
|
176452
|
176453
|
176489