Bugzilla – Attachment 6200 Details for
Bug 6893
Order from suggestion does not remove suggestion from 'accepted' list
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
PATCH for bug 6893 (suggestions list)
0001-Bug-6893-Updates-suggestions-list-when-adding-orders.patch (text/plain), 1.77 KB, created by
Adrien SAURAT
on 2011-11-04 13:43:44 UTC
(
hide
)
Description:
PATCH for bug 6893 (suggestions list)
Filename:
MIME Type:
Creator:
Adrien SAURAT
Created:
2011-11-04 13:43:44 UTC
Size:
1.77 KB
patch
obsolete
>From bdb99680f169b3bd5027b23af8590c443b3d5eb3 Mon Sep 17 00:00:00 2001 >From: Adrien Saurat <adrien.saurat@biblibre.com> >Date: Fri, 4 Nov 2011 14:20:31 +0100 >Subject: [PATCH] Bug 6893 : Updates suggestions list when adding orders > >A suggestion added through addorder.pl now changes >to the ORDERED status as initially intended (but so >far it stayed as ACCEPTED). > >This fixes the list of potential suggestions to order, >the ORDERED ones don't appear anymore. >--- > C4/Suggestions.pm | 2 +- > acqui/addorder.pl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Suggestions.pm b/C4/Suggestions.pm >index 1a93f2e..288c12b 100644 >--- a/C4/Suggestions.pm >+++ b/C4/Suggestions.pm >@@ -113,7 +113,7 @@ sub SearchSuggestion { > LEFT JOIN borrowers AS U2 ON managedby=U2.borrowernumber > LEFT JOIN branches AS B2 ON B2.branchcode=U2.branchcode > LEFT JOIN categories AS C2 ON C2.categorycode = U2.categorycode >- WHERE STATUS NOT IN ('CLAIMED') >+ WHERE STATUS NOT IN ('ORDERED') > } , map { > if ( my $s = $suggestion->{$_} ) { > push @sql_params,'%'.$s.'%'; >diff --git a/acqui/addorder.pl b/acqui/addorder.pl >index d7f7e96..121d20d 100755 >--- a/acqui/addorder.pl >+++ b/acqui/addorder.pl >@@ -212,7 +212,7 @@ if ( $orderinfo->{quantity} ne '0' ) { > my ($biblionumber,$bibitemnum) = AddBiblio($record,''); > # change suggestion status if applicable > if ($$orderinfo{suggestionid}) { >- ModSuggestion( {suggestionid=>$$orderinfo{suggestionid}, status=>'ORDERED', biblionumber=>$biblionumber} ); >+ ModSuggestion( {suggestionid=>$$orderinfo{suggestionid}, STATUS=>'ORDERED', biblionumber=>$biblionumber} ); > } > $orderinfo->{biblioitemnumber}=$bibitemnum; > $orderinfo->{biblionumber}=$biblionumber; >-- >1.7.4.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 6893
:
6199
|
6200
|
6201
|
6247
|
6483