From 96627227c6d94a857b7400cba4489fe3079a26b7 Mon Sep 17 00:00:00 2001 From: Frank Dillon Date: Mon, 17 Nov 2008 04:52:07 +0000 Subject: [PATCH] updated view method to use new way of calling ProfileCategory methods --- lib/WebGUI/Account/Profile.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/WebGUI/Account/Profile.pm b/lib/WebGUI/Account/Profile.pm index db218bd79..80c148db8 100644 --- a/lib/WebGUI/Account/Profile.pm +++ b/lib/WebGUI/Account/Profile.pm @@ -463,11 +463,9 @@ sub www_view { } $var->{'profile_category_loop' } = []; - foreach my $category (@{WebGUI::ProfileCategory->getCategories($session)}) { - next unless $category->isViewable; + foreach my $category (@{WebGUI::ProfileCategory->getCategories($session,{ visible => 1})}) { my @fields = (); - foreach my $field (@{$category->getFields}) { - next unless ($field->isViewable); + foreach my $field (@{$category->getFields({ visible => 1 })}) { next if $field->getId =~ m/contentPositions/; #This protects the contentPosition fields my $fieldId = $field->getId; my $fieldLabel = $field->getLabel;