From c66b30eb11d247741d876e428ad913e2aaa8dc39 Mon Sep 17 00:00:00 2001 From: Len Kranendonk Date: Wed, 28 Jul 2004 06:19:20 +0000 Subject: [PATCH] Macro's not handled properly --- lib/WebGUI/MetaData.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/MetaData.pm b/lib/WebGUI/MetaData.pm index 682e1dd50..58e254ea4 100644 --- a/lib/WebGUI/MetaData.pm +++ b/lib/WebGUI/MetaData.pm @@ -296,7 +296,10 @@ sub getWobjectByCriteria { my $order = $wobjectProxy->{resolveMultiples}; my $namespace = $wobjectProxy->{proxiedNamespace}; my $wobjectId = $wobjectProxy->{wobjectId}; - + + # Parse macro's in criteria + $criteria = WebGUI::Macro::process($criteria); + # Once a wobject is found, we will stick to that wobject, # to prevent the proxying of multiple- depth wobjects like Surveys and USS. my $scratchId; @@ -332,10 +335,10 @@ sub getWobjectByCriteria { # quote the field / value variables. my $quotedField = $field; + my $quotedValue = $value; unless ($field =~ /^\s*['"].*['"]\s*/) { $quotedField = quote($field); } - my $quotedValue = WebGUI::Macro::process($value); unless ($value =~ /^\s*['"].*['"]\s*/) { $quotedValue = quote($value); }