[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
patch for slipping modification index
A patch for lib/Vend/Interpolate.pm version 3.14 to eliminate slipage of
modifier index when items are deleted from the middle of the shopping
cart.
3461,3467d3460
< unless (defined($item->{NN}) and $item->{NN} >= 0) {
< if (defined $cart->[$#$cart]->{NN}) {
< $item->{NN} = $cart->[$#$cart]->{NN} + 1;
< } else {
< $item->{NN} = $i;
< }
< }
3469d3461
< my $NN = $item->{NN};
3487c3479
< $run =~ s:$T{'modifier-name'}$Spacef(\w+)\]:$1$NN:go;
---
> $run =~ s:$T{'modifier-name'}$Spacef(\w+)\]:$1$i:go;