[interchange-cvs] interchange - edl modified dist/lib/UI/Primitive.pm

interchange-core@interchange.redhat.com interchange-core@interchange.redhat.com
Tue Nov 6 17:43:00 2001


User:      edl
Date:      2001-11-06 22:42:21 GMT
Modified:  dist/lib/UI Primitive.pm
Log:
Found that lookup_exclude breaks if it is used for more than one widget in
a table-editor-based form in the UI; the first evaluated regex ends up being
used for all remaining.  The culprit was the 'o' modifier used in the eval of the
comparison.  Removed it.

Revision  Changes    Path
2.8       +3 -3      interchange/dist/lib/UI/Primitive.pm


rev 2.8, prev_rev 2.7
Index: Primitive.pm
===================================================================
RCS file: /var/cvs/interchange/dist/lib/UI/Primitive.pm,v
retrieving revision 2.7
retrieving revision 2.8
diff -u -r2.7 -r2.8
--- Primitive.pm	2001/11/02 14:09:53	2.7
+++ Primitive.pm	2001/11/06 22:42:21	2.8
@@ -1,6 +1,6 @@
 # UI::Primitive - Interchange configuration manager primitives
 
-# $Id: Primitive.pm,v 2.7 2001/11/02 14:09:53 mheins Exp $
+# $Id: Primitive.pm,v 2.8 2001/11/06 22:42:21 edl Exp $
 
 # Copyright (C) 1998-2001 Red Hat, Inc. <interchange@redhat.com>
 
@@ -25,7 +25,7 @@
 
 package UI::Primitive;
 
-$VERSION = substr(q$Revision: 2.7 $, 10);
+$VERSION = substr(q$Revision: 2.8 $, 10);
 $DEBUG = 0;
 
 use vars qw!
@@ -987,7 +987,7 @@
 				my $sub;
 				if($record->{lookup_exclude}) {
 					eval {
-						$sub = sub { $_[0] !~ m{$record->{lookup_exclude}}o };
+						$sub = sub { $_[0] !~ m{$record->{lookup_exclude}} };
 					};
 					if ($@) {
 						::logError(errmsg(