Bugzilla – Attachment 110460 Details for
Bug 25039
Move new due calculation to Koha::Checkout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25039: (follow-up) Don't forget to store the updated checkout
Bug-25039-follow-up-Dont-forget-to-store-the-updat.patch (text/plain), 1.36 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-09-21 12:54:42 UTC
(
hide
)
Description:
Bug 25039: (follow-up) Don't forget to store the updated checkout
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-09-21 12:54:42 UTC
Size:
1.36 KB
patch
obsolete
>From 8ba7712b9a6fe4f243eeda9a282c31fe3ddb8068 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 21 Sep 2020 09:49:45 -0300 >Subject: [PATCH] Bug 25039: (follow-up) Don't forget to store the updated > checkout > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > tools/batch_extend_due_dates.pl | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > >diff --git a/tools/batch_extend_due_dates.pl b/tools/batch_extend_due_dates.pl >index 218c5920418..c2f9011e562 100755 >--- a/tools/batch_extend_due_dates.pl >+++ b/tools/batch_extend_due_dates.pl >@@ -102,7 +102,6 @@ elsif ( $op eq 'list' ) { > } > ); > >- my @new_due_dates; > my @checkouts; > > while ( my $checkout = $checkouts->next ) { >@@ -151,10 +150,14 @@ if ( $op eq 'modify' ) { > > # Update checkout's due date > if ( $new_hard_due_date ) { >- $checkout->shift_due_date({ hard_due_date => $new_hard_due_date }); >+ $checkout->shift_due_date({ hard_due_date => $new_hard_due_date }) >+ ->store >+ ->discard_changes; > } > else { >- $checkout->shift_due_date({ days => $due_date_days }); >+ $checkout->shift_due_date({ days => $due_date_days }) >+ ->store >+ ->discard_changes; > } > > # Update items.onloan >-- >2.28.0
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 25039
:
102273
|
110073
|
110460
|
110483
|
110484
|
110795
|
110796
|
110905