[interchange-cvs] interchange - kwalsh modified lib/Vend/Interpolate.pm

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Fri Nov 8 16:49:01 2002


User:      kwalsh
Date:      2002-11-08 21:48:19 GMT
Modified:  lib/Vend Interpolate.pm
Log:
	* Fixed a problem that prevented the following from working:

	  [input-filter name="[quantity-name]" op="nullselect digits_dot"]
	  [/input-filter]

	  The problem was reported by John Young, in IRC, who also tested
	  and verified this patch for me.

Revision  Changes    Path
2.127     +3 -3      interchange/lib/Vend/Interpolate.pm


rev 2.127, prev_rev 2.126
Index: Interpolate.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Interpolate.pm,v
retrieving revision 2.126
retrieving revision 2.127
diff -u -r2.126 -r2.127
--- Interpolate.pm	7 Nov 2002 15:46:26 -0000	2.126
+++ Interpolate.pm	8 Nov 2002 21:48:18 -0000	2.127
@@ -1,6 +1,6 @@
 # Vend::Interpolate - Interpret Interchange tags
 # 
-# $Id: Interpolate.pm,v 2.126 2002/11/07 15:46:26 mheins Exp $
+# $Id: Interpolate.pm,v 2.127 2002/11/08 21:48:18 kwalsh Exp $
 #
 # Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -27,7 +27,7 @@
 require Exporter;
 @ISA = qw(Exporter);
 
-$VERSION = substr(q$Revision: 2.126 $, 10);
+$VERSION = substr(q$Revision: 2.127 $, 10);
 
 @EXPORT = qw (
 
@@ -1196,7 +1196,7 @@
 	}
 	$opt->{routine} = $routine if $routine =~ /\S/;
 	$Vend::Session->{Filter} = {} if ! $Vend::Session->{Filter};
-	$Vend::Session->{Filter}{$varname} = $opt;
+	$Vend::Session->{Filter}{$varname} = $opt->{op} if $opt->{op};
 	return;
 }