Bugzilla – Attachment 3118 Details for
Bug 5731
If an item doesn't have a collection code set, moredetail.pl will error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed Patch
0003-Bug-5731-When-No-ccode-is-defined-for-an-item-then-m.patch (text/plain), 1.31 KB, created by
Chris Cormack
on 2011-02-10 01:44:46 UTC
(
hide
)
Description:
Proposed Patch
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-02-10 01:44:46 UTC
Size:
1.31 KB
patch
obsolete
>From 21389e0b176f27199cec6aace015d8c26649868d Mon Sep 17 00:00:00 2001 >From: Paul Poulain <paul.poulain@biblibre.com> >Date: Tue, 14 Dec 2010 21:07:08 +0100 >Subject: [PATCH] Bug 5731 When No ccode is defined for an item, then moredetail.pl throws a 500 error > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> >--- > catalogue/moredetail.pl | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl >index d790c41..4f40b04 100755 >--- a/catalogue/moredetail.pl >+++ b/catalogue/moredetail.pl >@@ -87,7 +87,7 @@ my $itemnumber; > foreach my $item (@items){ > $item->{itemlostloop}= GetAuthorisedValues(GetAuthValCode('items.itemlost',$fw),$item->{itemlost}) if GetAuthValCode('items.itemlost',$fw); > $item->{itemdamagedloop}= GetAuthorisedValues(GetAuthValCode('items.damaged',$fw),$item->{damaged}) if GetAuthValCode('items.damaged',$fw); >- $item->{'collection'} = $ccodes->{ $item->{ccode} }; >+ $item->{'collection'} = $ccodes->{ $item->{ccode} } if ($ccodes); > $item->{'itype'} = $itemtypes->{ $item->{'itype'} }->{'description'}; > $item->{'replacementprice'} = sprintf( "%.2f", $item->{'replacementprice'} ); > $item->{'datelastborrowed'} = format_date( $item->{'datelastborrowed'} ); >-- >1.7.1 >
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 5731
: 3118