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

interchange-core@interchange.redhat.com interchange-core@interchange.redhat.com
Tue Nov 27 11:46:00 2001


User:      jon
Date:      2001-11-27 16:45:03 GMT
Modified:  lib/Vend Tag: STABLE_4_8-branch Interpolate.pm
Log:
Merge in bugfix from 4.9 that was missed. Makes sure that [on-match] and
friends work with [loop list=`...`].

Revision  Changes    Path
No                   revision



No                   revision



2.9.2.8   +3 -2      interchange/lib/Vend/Interpolate.pm


rev 2.9.2.8, prev_rev 2.9.2.7
Index: Interpolate.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Interpolate.pm,v
retrieving revision 2.9.2.7
retrieving revision 2.9.2.8
diff -u -u -r2.9.2.7 -r2.9.2.8
--- Interpolate.pm	2001/10/18 16:24:36	2.9.2.7
+++ Interpolate.pm	2001/11/27 16:45:03	2.9.2.8
@@ -1,6 +1,6 @@
 # Vend::Interpolate - Interpret Interchange tags
 # 
-# $Id: Interpolate.pm,v 2.9.2.7 2001/10/18 16:24:36 mheins Exp $
+# $Id: Interpolate.pm,v 2.9.2.8 2001/11/27 16:45:03 jon Exp $
 #
 # Copyright (C) 1996-2001 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -27,7 +27,7 @@
 require Exporter;
 @ISA = qw(Exporter);
 
-$VERSION = substr(q$Revision: 2.9.2.7 $, 10);
+$VERSION = substr(q$Revision: 2.9.2.8 $, 10);
 
 @EXPORT = qw (
 
@@ -5500,6 +5500,7 @@
 #::logDebug("opt->list in: " . ::uneval($list) );
 		my ($ary, $fh, $fa) = @$list;
 		$opt->{object}{mv_results} = $ary;
+		$opt->{object}{matches} = scalar @$ary;
 		$opt->{object}{mv_field_names} = $fa if $fa;
 		$opt->{object}{mv_field_hash} = $fh if $fh;
 		return region($opt, $text);