Bugzilla – Attachment 96684 Details for
Bug 24279
Claims Returned does not work when set from moredetail.pl or additem.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24279 - Claims Returned does not work when set from additem.pl
Bug-24279---Claims-Returned-does-not-work-when-set.patch (text/plain), 1.83 KB, created by
Kyle M Hall (khall)
on 2019-12-30 13:05:36 UTC
(
hide
)
Description:
Bug 24279 - Claims Returned does not work when set from additem.pl
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2019-12-30 13:05:36 UTC
Size:
1.83 KB
patch
obsolete
>From ac2b1fa87c15fa77ddb294006a30491d9320e77c Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 30 Dec 2019 08:04:29 -0500 >Subject: [PATCH] Bug 24279 - Claims Returned does not work when set from > additem.pl > >Test Plan: >1) Configure Claimes Returned >2) Apply this patch >3) Go to additem.pl for that item >4) Note the claims returned lost status does not show in the lost status pulldown >--- > cataloguing/additem.pl | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > >diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl >index 2c371def28..514f24ce86 100755 >--- a/cataloguing/additem.pl >+++ b/cataloguing/additem.pl >@@ -174,7 +174,17 @@ sub generate_subfield_form { > my @authorised_values; > my %authorised_lib; > # builds list, depending on authorised value... >- if ( $subfieldlib->{authorised_value} eq "branches" ) { >+ if ( $subfieldlib->{authorised_value} eq "LOST" ) { >+ my $ClaimReturnedLostValue = C4::Context->preference('ClaimReturnedLostValue'); >+ push @authorised_values, qq{}; >+ my $av = GetAuthorisedValues( $subfieldlib->{authorised_value} ); >+ for my $r ( @$av ) { >+ next if $ClaimReturnedLostValue && $r->{authorised_value} eq $ClaimReturnedLostValue; >+ push @authorised_values, $r->{authorised_value}; >+ $authorised_lib{$r->{authorised_value}} = $r->{lib}; >+ } >+ } >+ elsif ( $subfieldlib->{authorised_value} eq "branches" ) { > foreach my $thisbranch (@$branches) { > push @authorised_values, $thisbranch->{branchcode}; > $authorised_lib{$thisbranch->{branchcode}} = $thisbranch->{branchname}; >-- >2.21.0 (Apple Git-122.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 24279
:
96683
|
96684
|
96724
|
96725
|
103597
|
103598
|
104487
|
105355
|
107286
|
107287
|
107288
|
107289
|
107290
|
107311
|
107376
|
107377
|
107378
|
107379
|
107380
|
107381