[ 1441488 ] Sort Order of Profile Fields in Form "Create New Account"

fixed a few syntax things in Item.pm
This commit is contained in:
Matthew Wilson 2006-03-10 19:00:05 +00:00
parent 27c2d07443
commit 279233b367
4 changed files with 17 additions and 6 deletions

View file

@ -292,12 +292,12 @@ Returns an array reference of WebGUI::ProfileField objects that are marked "requ
=cut
sub getRequiredFields {
my $self = shift;
my @fields = ();
foreach my $fieldName ($self->session->db->buildArray("select fieldName from userProfileField where required=1 order by sequenceNumber")) {
push(@fields,WebGUI::ProfileField->new($self->session,$fieldName));
}
return \@fields;
my $self = shift;
my @fields = ();
foreach my $fieldName ($self->session->db->buildArray("select userProfileField.fieldName from userProfileField LEFT JOIN userProfileCategory ON userProfileField.profileCategoryId = userProfileCategory.profileCategoryId where userProfileField.required=1 order by userProfileCategory.sequenceNumber, userProfileField.sequenceNumber")) {
push(@fields,WebGUI::ProfileField->new($self->session,$fieldName));
}
return \@fields;
}
#-------------------------------------------------------------------