Bugzilla – Attachment 4557 Details for
Bug 6551
applying lending rules by item-level itypes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated patch from git
6551patch.txt (text/plain), 1.02 KB, created by
Justin @ Prosentient
on 2011-07-05 04:22:44 UTC
(
hide
)
Description:
Updated patch from git
Filename:
MIME Type:
Creator:
Justin @ Prosentient
Created:
2011-07-05 04:22:44 UTC
Size:
1.02 KB
patch
obsolete
>From: Edmund Balnaves <prosentientsystems@gmail.com> > >--- > C4/Reserves.pm | 11 ++++++++++- > 1 files changed, 10 insertions(+), 1 deletions(-) > >diff --git a/C4/Reserves.pm b/C4/Reserves.pm index ca8f2fb..dd3d4c0 100644 >--- a/C4/Reserves.pm >+++ b/C4/Reserves.pm >@@ -768,9 +768,18 @@ sub CheckReserves { > items.itemnumber > FROM items > LEFT JOIN biblioitems ON items.biblioitemnumber = biblioitems.biblioitemnumber >- LEFT JOIN itemtypes ON biblioitems.itemtype = itemtypes.itemtype > "; > >+ #ejb2011 - logic is wrong here - if itemlevel itypes then should join on itype not biblio item.type >+ if (C4::Context->preference('item-level_itypes')) { >+ $select .= " LEFT JOIN itemtypes ON items.itype = >+itemtypes.itemtype"; >+ } else { >+ $select .= " LEFT JOIN itemtypes ON biblioitems.itype = >+itemtypes.itemtype"; >+ } >+ } >+ > if ($item) { > $sth = $dbh->prepare("$select WHERE itemnumber = ?"); > $sth->execute($item); >-- >1.6.0.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 6551
:
4554
| 4557