[interchange-cvs] interchange - heins modified lib/Vend/Cart.pm

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Sat Jul 27 23:58:00 2002


User:      heins
Date:      2002-07-28 03:57:18 GMT
Modified:  lib/Vend Cart.pm
Log:
* Levies cart could get out of step on store of $Items. Fixed.

Revision  Changes    Path
2.8       +3 -2      interchange/lib/Vend/Cart.pm


rev 2.8, prev_rev 2.7
Index: Cart.pm
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /anon_cvs/repository/interchange/lib/Vend/Cart.pm,v
retrieving revision 2.7
retrieving revision 2.8
diff -u -r2.7 -r2.8
--- Cart.pm	18 Jul 2002 19:08:10 -0000	2.7
+++ Cart.pm	28 Jul 2002 03:57:18 -0000	2.8
@@ -1,6 +1,6 @@
 # Vend::Cart - Interchange shopping cart management routines
 #
-# $Id: Cart.pm,v 2.7 2002/07/18 19:08:10 mheins Exp $
+# $Id: Cart.pm,v 2.8 2002/07/28 03:57:18 mheins Exp $
 #
 # Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -24,7 +24,7 @@
=20
 package Vend::Cart;
=20
-$VERSION =3D substr(q$Revision: 2.7 $, 10);
+$VERSION =3D substr(q$Revision: 2.8 $, 10);
=20
 use strict;
=20
@@ -91,6 +91,7 @@
 	else {
 		$Vend::CurrentCart =3D $cart;
 	}
+	$::Levies =3D $Vend::Session->{levies}{$Vend::CurrentCart} ||=3D [];
 	return $::Carts->{$Vend::CurrentCart};
 }
=20