Bugzilla – Attachment 4554 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]
logic change using items.itype instead of biblio
6551patch.txt (text/plain), 759 bytes, created by
Justin @ Prosentient
on 2011-07-04 01:17:32 UTC
(
hide
)
Description:
logic change using items.itype instead of biblio
Filename:
MIME Type:
Creator:
Justin @ Prosentient
Created:
2011-07-04 01:17:32 UTC
Size:
759 bytes
patch
obsolete
>sub CheckReserves { > my ( $item, $barcode ) = @_; > my $dbh = C4::Context->dbh; > my $sth; > my $select = " > SELECT items.biblionumber, > items.biblioitemnumber, > itemtypes.notforloan, > items.notforloan AS itemnotforloan, > items.itemnumber > FROM items > LEFT JOIN biblioitems ON items.biblioitemnumber = biblioitems.biblioitemnumber > "; > > #ejb2011 - logic is wrong here - if itemlevel itypes 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.itemtype = >itemtypes.itemtype"; > } > > }
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