Bugzilla – Attachment 113969 Details for
Bug 27082
Problem when a basket has more of 20 orders with uncertain price
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27082: uncertainprice.pl does not handle pagination
Bug-27082-uncertainpricepl-does-not-handle-paginat.patch (text/plain), 1.48 KB, created by
Blou
on 2020-11-24 22:14:17 UTC
(
hide
)
Description:
Bug 27082: uncertainprice.pl does not handle pagination
Filename:
MIME Type:
Creator:
Blou
Created:
2020-11-24 22:14:17 UTC
Size:
1.48 KB
patch
obsolete
>From a0658d01dad83b88f58edf3b2ad76c5be44a3bd9 Mon Sep 17 00:00:00 2001 >From: Blou <blou@inlibro.com> >Date: Tue, 24 Nov 2020 17:03:32 -0500 >Subject: [PATCH] Bug 27082: uncertainprice.pl does not handle pagination > >To reproduce: >1- create a basket >2- add more of 20 orders with uncertain price >3- click on uncertain price button >4- on page 1 of list, uncheck uncertain box of an order >5- click on save button >6- orders who were on page 2 are not display anymore in page uncertainprice.pl >7- return to basket view acqui/basket.pl >8- orders who were on page 2 have "rvcd" label and quantity is null > >The data in page 2 and beyond is not transmitted, but the code doesn't >handle that. This patch makes sure that all that (empty) data is not (wrongly) processed. > >Sponsored by: CCSR >--- > acqui/uncertainprice.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/acqui/uncertainprice.pl b/acqui/uncertainprice.pl >index ac2964ebbe..82b98b2d3d 100755 >--- a/acqui/uncertainprice.pl >+++ b/acqui/uncertainprice.pl >@@ -88,6 +88,7 @@ if ( $op eq 'validate' ) { > for (my $i=0; $i < $count; $i++) { > my $order = pop(@orders); > my $ordernumber = $order->{ordernumber}; >+ next unless ($input->param('qty'.$ordernumber)); > my $order_as_from_db=GetOrder($order->{ordernumber}); > $order->{'listprice'} = $input->param('price'.$ordernumber); > $order->{'ecost'}= $input->param('price'.$ordernumber) - (($input->param('price'.$ordernumber) /100) * $bookseller->discount); >-- >2.17.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 27082
:
113940
|
113965
|
113969
|
113977