Bugzilla – Attachment 117381 Details for
Bug 27808
Item's onloan column remains unset if a checked out item is issued to another patron without being returned first
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27808: Mark the onloan column as dirty in AddIssue
Bug-27808-Mark-the-onloan-column-as-dirty-in-AddIs.patch (text/plain), 960 bytes, created by
Kyle M Hall (khall)
on 2021-02-26 14:58:04 UTC
(
hide
)
Description:
Bug 27808: Mark the onloan column as dirty in AddIssue
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2021-02-26 14:58:04 UTC
Size:
960 bytes
patch
obsolete
>From 5b0d509b8d3ec7b6a42bb48b8096d01442e9fd28 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 26 Feb 2021 09:56:07 -0500 >Subject: [PATCH] Bug 27808: Mark the onloan column as dirty in AddIssue > >--- > C4/Circulation.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 5b5a0d2c23..838d0259cb 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -1565,6 +1565,7 @@ sub AddIssue { > $item_object->holdingbranch(C4::Context->userenv->{'branch'}); > $item_object->itemlost(0); > $item_object->onloan($datedue->ymd()); >+ $item_object->make_column_dirty('onloan'); # Force write onloan so we don't need to fetch from db > $item_object->datelastborrowed( dt_from_string()->ymd() ); > $item_object->datelastseen( dt_from_string()->ymd() ); > $item_object->store({log_action => 0}); >-- >2.24.1 (Apple Git-126)
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 27808
:
117380
|
117381
|
117382
|
117384
|
117385
|
117386
|
117387
|
117398
|
117399
|
117400
|
117443
|
117445
|
117446
|
117454
|
117456