updated view method to use new way of calling ProfileCategory methods
This commit is contained in:
parent
9c09174fd2
commit
96627227c6
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue