Bugzilla – Attachment 6784 Details for
Bug 7358
basket.pl : it is possible to affect a closed basket to a closed basketgroup
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch.
0001-Bug-7358-reaffect-a-closed-basket-to-a-closed-basket.patch (text/plain), 1.12 KB, created by
laurenthdl
on 2011-12-14 15:10:37 UTC
(
hide
)
Description:
proposed patch.
Filename:
MIME Type:
Creator:
laurenthdl
Created:
2011-12-14 15:10:37 UTC
Size:
1.12 KB
patch
obsolete
>From a00ac9e945a826090df011805b5289b2c165ebfb Mon Sep 17 00:00:00 2001 >From: Admin User Koha <koha@biblibre.com> >Date: Wed, 14 Dec 2011 15:18:33 +0100 >Subject: [PATCH] Bug 7358: reaffect a closed basket to a closed basketgroup > >The list of basketgroups when looking at a closed basket show all the basketgroups. >It should not be possible to affect a basket to a closed basketgroup, >since this basketgroup should have been sent to a supplier. >--- > acqui/basket.pl | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > >diff --git a/acqui/basket.pl b/acqui/basket.pl >index b836280..60a46f0 100755 >--- a/acqui/basket.pl >+++ b/acqui/basket.pl >@@ -199,6 +199,7 @@ if ( $op eq 'delete_confirm' ) { > my $member = GetMember(borrowernumber => $loggedinuser); > if ($basket->{closedate} && haspermission({ acquisition => 'group_manage'} )) { > $basketgroups = GetBasketgroups($basket->{booksellerid}); >+ @$basketgroups= grep {!$_->{closed}} @$basketgroups; > for my $bg ( @{$basketgroups} ) { > if ($basket->{basketgroupid} && $basket->{basketgroupid} == $bg->{id}){ > $bg->{default} = 1; >-- >1.7.2.5 >
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 7358
:
6784
|
11739
|
13228
|
13316