Bugzilla – Attachment 107287 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-f.patch (text/plain), 1.90 KB, created by
Marcel de Rooy
on 2020-07-24 08:59:59 UTC
(
hide
)
Description:
Bug 24279: Claims Returned does not work when set from additem.pl
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2020-07-24 08:59:59 UTC
Size:
1.90 KB
patch
obsolete
>From d0a93d6f40d3b7ea18de1c1ab65f6d67a7433b9e 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 >Content-Type: text/plain; charset=utf-8 > >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 > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > cataloguing/additem.pl | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > >diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl >index 130ff0a3f2..9f375370fa 100755 >--- a/cataloguing/additem.pl >+++ b/cataloguing/additem.pl >@@ -170,7 +170,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.11.0
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