Bugzilla – Attachment 95820 Details for
Bug 24117
Patron does not get debarred upon returning overdue item if syspref item-level_itypes is set to biblio and item does not have type information
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Bugfix commit
file_24117.txt (text/plain), 1.40 KB, created by
Pedro Amorim
on 2019-11-26 12:44:37 UTC
(
hide
)
Description:
Bugfix commit
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2019-11-26 12:44:37 UTC
Size:
1.40 KB
patch
obsolete
>diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index ad617c8..69c84ad 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -2039,7 +2039,7 @@ sub AddReturn { > > if ( $issue and $issue->is_overdue ) { > # fix fine days >- my ($debardate,$reminder) = _debar_user_on_return( $patron_unblessed, $item_unblessed, dt_from_string($issue->date_due), $return_date ); >+ my ($debardate,$reminder) = _debar_user_on_return( $patron_unblessed, $item_unblessed, $item->effective_itemtype, dt_from_string($issue->date_due), $return_date ); > if ($reminder){ > $messages->{'PrevDebarred'} = $debardate; > } else { >@@ -2238,7 +2238,7 @@ Should only be called for overdue returns > =cut > > sub _debar_user_on_return { >- my ( $borrower, $item, $dt_due, $return_date ) = @_; >+ my ( $borrower, $item, $itemtype, $dt_due, $return_date ) = @_; > > my $branchcode = _GetCircControlBranch( $item, $borrower ); > $return_date //= dt_from_string(); >@@ -2246,7 +2246,7 @@ sub _debar_user_on_return { > my $circcontrol = C4::Context->preference('CircControl'); > my $issuing_rule = Koha::IssuingRules->get_effective_issuing_rule( > { categorycode => $borrower->{categorycode}, >- itemtype => $item->{itype}, >+ itemtype => $itemtype, > branchcode => $branchcode > } > );
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 Raw
Actions:
View
Attachments on
bug 24117
:
95820
|
95822