Bugzilla – Attachment 3768 Details for
Bug 6104
Modifying an item causes it to lose its branch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
0001-BZ6104-Modify-item-looses-branch.patch (text/plain), 1.05 KB, created by
Paul Poulain
on 2011-04-07 08:34:56 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Paul Poulain
Created:
2011-04-07 08:34:56 UTC
Size:
1.05 KB
patch
obsolete
>From 28c8ec25e732b42e31793abc8896ddad472daf6f Mon Sep 17 00:00:00 2001 >From: Paul Poulain <paul.poulain@biblibre.com> >Date: Thu, 7 Apr 2011 10:34:24 +0200 >Subject: [PATCH] BZ6104: Modify item looses branch > >If the $value is provided by the item, use it, don't use the librarian branch ! >--- > cataloguing/additem.pl | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl >index b2b1192..e2dfc02 100755 >--- a/cataloguing/additem.pl >+++ b/cataloguing/additem.pl >@@ -150,7 +150,7 @@ sub generate_subfield_form { > foreach my $thisbranch (@$branches) { > push @authorised_values, $thisbranch->{value}; > $authorised_lib{$thisbranch->{value}} = $thisbranch->{branchname}; >- $value = $thisbranch->{value} if $thisbranch->{selected}; >+ $value = $thisbranch->{value} if $thisbranch->{selected} && !$value; > } > } > elsif ( $subfieldlib->{authorised_value} eq "itemtypes" ) { >-- >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 6104
: 3768