Bugzilla – Attachment 14048 Details for
Bug 9236
deleting an order when receiving redirects to closed basket
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH] Bug 9236 : Redirect to the parcel page after deleting an item/order
attachment.cgi?id=14045 (text/plain), 2.62 KB, created by
Mathieu Saby
on 2012-12-12 16:33:31 UTC
(
hide
)
Description:
[PATCH] Bug 9236 : Redirect to the parcel page after deleting an item/order
Filename:
MIME Type:
Creator:
Mathieu Saby
Created:
2012-12-12 16:33:31 UTC
Size:
2.62 KB
patch
obsolete
>From 882cd48d504693f77b08b9a2ced7a2f9aeb3a798 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 12 Dec 2012 15:14:08 +0100 >Subject: [PATCH] Bug 9236 : Redirect to the parcel page after deleting an > item/order > >Signed-off-by: mathieu saby <mathieu.saby@univ-rennes2.fr> >--- > acqui/addorder.pl | 2 ++ > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt | 4 ++-- > 2 files changed, 4 insertions(+), 2 deletions(-) > >diff --git a/acqui/addorder.pl b/acqui/addorder.pl >index 1dfa0b1..3fa7620 100755 >--- a/acqui/addorder.pl >+++ b/acqui/addorder.pl >@@ -261,6 +261,8 @@ my $basketno=$$orderinfo{basketno}; > my $booksellerid=$$orderinfo{booksellerid}; > if (my $import_batch_id=$$orderinfo{import_batch_id}) { > print $input->redirect("/cgi-bin/koha/acqui/addorderiso2709.pl?import_batch_id=$import_batch_id&basketno=$basketno&booksellerid=$booksellerid"); >+} elsif ( defined $orderinfo->{invoiceid} ) { >+ print $input->redirect("/cgi-bin/koha/acqui/parcel.pl?invoiceid=" . $orderinfo->{invoiceid}); > } else { > print $input->redirect("/cgi-bin/koha/acqui/basket.pl?basketno=$basketno"); > } >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt >index f867d6c..1fbcc07 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt >@@ -80,14 +80,14 @@ > function confirm_delete_item(ordernumber, basketno, biblionumber) { > var is_confirmed = confirm(_('Are you sure you want to delete this order ?')); > if (is_confirmed) { >- window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber; >+ window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&invoiceid=[% invoiceid %]"; > } > } > > function confirm_delete_biblio(ordernumber, basketno, biblionumber) { > var is_confirmed = confirm(_('Are you sure you want to delete this catalog record and order ?')); > if (is_confirmed) { >- window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&delbiblio=1"; >+ window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&delbiblio=1&invoiceid=[% invoiceid %]"; > } > } > //]]> >-- >1.7.10.4
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 9236
:
13995
|
14039
|
14045
|
14047
|
14048
|
14729
|
14730