[Koha-bugs] [Bug 27808] Item's onloan column remains unset if a checked out item is issued to another patron without being returned first
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Mar 22 17:18:36 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27808
Victor Grousset/tuxayo <victor at tuxayo.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |victor at tuxayo.net
Status|Pushed to oldstable |RESOLVED
Resolution|--- |FIXED
--- Comment #26 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
Can't backport to 19.11.x: can't solve a conflict.
<<<<<<< HEAD (19.11.x)
ModItem(
{
issues => $item_object->issues + 1,
holdingbranch => C4::Context->userenv->{'branch'},
itemlost => 0,
onloan => $datedue->ymd(),
datelastborrowed => dt_from_string(),
},
$item_object->biblionumber,
$item_object->itemnumber,
{ log_action => 0 }
);
ModDateLastSeen( $item_object->itemnumber );
||||||| parent of f9d204bd18 (Bug 27808: Mark the onloan column as dirty in
AddIssue) (↓code before the patch in 20.05 ↓)
$item_object->issues( ( $item_object->issues || 0 ) + 1);
$item_object->holdingbranch(C4::Context->userenv->{'branch'});
$item_object->itemlost(0);
$item_object->onloan($datedue->ymd());
$item_object->datelastborrowed( dt_from_string()->ymd() );
$item_object->datelastseen( dt_from_string()->ymd() );
$item_object->store({log_action => 0});
======= (↓code before after the patch in 20.05 ↓)
$item_object->issues( ( $item_object->issues || 0 ) + 1);
$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});
>>>>>>> f9d204bd18 (Bug 27808: Mark the onloan column as dirty in AddIssue)
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list