Bugzilla – Attachment 3047 Details for
Bug 5680
When deleting an order, delete attached items, and if applicable biblio
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
0001-Bug-5860-Order-cancelling-improvement-delete-attache.patch (text/plain), 955 bytes, created by
Chris Cormack
on 2011-02-02 01:27:39 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-02-02 01:27:39 UTC
Size:
955 bytes
patch
obsolete
>From bf1812ff42a761cfc8da8fd0216618bca475c338 Mon Sep 17 00:00:00 2001 >From: Paul Poulain <paul.poulain@biblibre.com> >Date: Wed, 15 Dec 2010 20:27:24 +0100 >Subject: [PATCH] Bug 5860: Order cancelling improvement : delete attached items & biblio > >- all items attached to the order are deleted >- if there is no more items, then the biblio is deleted as well >--- > C4/Acquisition.pm | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index c1b837b..5c80435 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -1219,6 +1219,9 @@ sub DelOrder { > my $sth = $dbh->prepare($query); > $sth->execute( $bibnum, $ordernumber ); > $sth->finish; >+ my @itemnumbers = GetItemnumbersFromOrder( $ordernumber ); >+ C4::Items::DelItem( $dbh, $bibnum, $_ ) for @itemnumbers; >+ DelBiblio(($bibnum)) if C4::Items::GetItemsCount( $bibnum ) == 0; > } > > =head2 FUNCTIONS ABOUT PARCELS >-- >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 5680
:
3047
|
4255
|
4256
|
4480
|
5813
|
5814
|
5816
|
5904
|
5914
|
5915
|
5916
|
5964
|
5965