Bugzilla – Attachment 3634 Details for
Bug 6045
Accepted by is empty when accepting from list
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
0001-Bug-6045-Accepted-by-is-empty-when-accepting-from-li.patch (text/plain), 1.45 KB, created by
Paul Poulain
on 2011-04-04 14:25:48 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Paul Poulain
Created:
2011-04-04 14:25:48 UTC
Size:
1.45 KB
patch
obsolete
>From 09fddba5790b8c9d68f6a91593fd2704aca5aa48 Mon Sep 17 00:00:00 2001 >From: Paul Poulain <paul.poulain@biblibre.com> >Date: Mon, 4 Apr 2011 16:23:38 +0200 >Subject: [PATCH] Bug 6045: Accepted by is empty when accepting from list > >--- > suggestion/suggestion.pl | 13 +++++++++---- > 1 files changed, 9 insertions(+), 4 deletions(-) > >diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl >index 2b4e3d9..aa8fad0 100755 >--- a/suggestion/suggestion.pl >+++ b/suggestion/suggestion.pl >@@ -138,11 +138,16 @@ elsif ($op=~/edit/) { > $op ='save'; > } > elsif ($op eq "change" ) { >+ # set accepted/rejected/managed informations if applicable >+ # ie= if the librarian has choosen some action on the suggestions >+ if ($$suggestion_ref{"STATUS"} eq "ACCEPTED"){ >+ $$suggestion_ref{"accepteddate"}=C4::Dates->today; >+ $$suggestion_ref{"acceptedby"}=C4::Context->userenv->{number}; >+ } elsif ($$suggestion_ref{"STATUS"} eq "REJECTED"){ >+ $$suggestion_ref{"rejecteddate"}=C4::Dates->today; >+ $$suggestion_ref{"rejectedby"}=C4::Context->userenv->{number}; >+ } > if ($$suggestion_ref{"STATUS"}){ >- if (my $tmpstatus=lc($$suggestion_ref{"STATUS"}) =~/ACCEPTED|REJECTED/i){ >- $$suggestion_ref{"$tmpstatus"."date"}=C4::Dates->today; >- $$suggestion_ref{"$tmpstatus"."by"}=C4::Context->userenv->{number}; >- } > $$suggestion_ref{"manageddate"}=C4::Dates->today; > $$suggestion_ref{"managedby"}=C4::Context->userenv->{number}; > } >-- >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 6045
:
3634
|
3636