[ 1441488 ] Sort Order of Profile Fields in Form "Create New Account"
fixed a few syntax things in Item.pm
This commit is contained in:
parent
27c2d07443
commit
279233b367
4 changed files with 17 additions and 6 deletions
|
|
@ -59,6 +59,8 @@
|
||||||
- Help for forms now shows the fields that you should see with your UI level.
|
- Help for forms now shows the fields that you should see with your UI level.
|
||||||
There is a link to show all fields.
|
There is a link to show all fields.
|
||||||
- fix [ 1445393 ] 6.9 WhatNext missing from DataForm editField
|
- fix [ 1445393 ] 6.9 WhatNext missing from DataForm editField
|
||||||
|
- fix [ 1443378 ] 6.99 Commerce system needs to be sessionized
|
||||||
|
- fix [ 1442942 ] 6.99: listLDAPLinks broken
|
||||||
|
|
||||||
6.8.8
|
6.8.8
|
||||||
- fix [ 1437186 ] 6.8.7 deploy DataForm package does not copy fields
|
- fix [ 1437186 ] 6.8.7 deploy DataForm package does not copy fields
|
||||||
|
|
@ -69,6 +71,9 @@
|
||||||
bars
|
bars
|
||||||
- fixed a delete bug on cs posts.
|
- fixed a delete bug on cs posts.
|
||||||
- fixed two security problems with www_process in DataForm.pm
|
- fixed two security problems with www_process in DataForm.pm
|
||||||
|
- [ 1441488 ] Sort Order of Profile Fields in Form "Create New Account"
|
||||||
|
- fix [ 1439352 ] Deleting post is chain of posts ... descendants
|
||||||
|
- fix [ 1432491 ] 6.8.6 popup windows has not head & body tags
|
||||||
|
|
||||||
6.8.7
|
6.8.7
|
||||||
- fix [ 1431098 ] op=becomeUser can become non-existent userIds
|
- fix [ 1431098 ] op=becomeUser can become non-existent userIds
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@ This returns the description of the item. This must be implemented by an item pl
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
sub description {
|
sub description {
|
||||||
|
my $self = shift;
|
||||||
return $self->session->errorHandler->fatal('The description method of WebGUI::Commerce::Item must be overridden.');
|
return $self->session->errorHandler->fatal('The description method of WebGUI::Commerce::Item must be overridden.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -95,6 +96,7 @@ by an item plugin.
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
sub id {
|
sub id {
|
||||||
|
my $self = shift;
|
||||||
return $self->session->errorHandler->fatal('The id method of WebGUI::Commerce::Item must be overridden.');
|
return $self->session->errorHandler->fatal('The id method of WebGUI::Commerce::Item must be overridden.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -120,6 +122,7 @@ Returns the name of the item. This must be implemented by an item plugin.
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
sub name {
|
sub name {
|
||||||
|
my $self = shift;
|
||||||
return $self->session->errorHandler->fatal('The name method of WebGUI::Commerce::Item must be overridden.');
|
return $self->session->errorHandler->fatal('The name method of WebGUI::Commerce::Item must be overridden.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -183,6 +186,7 @@ term price. This must be implemented by an item plugin.
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
sub price {
|
sub price {
|
||||||
|
my $self = shift;
|
||||||
return $self->session->errorHandler->fatalError('The price method of WebGUI::Commerce::Item must be overridden.');
|
return $self->session->errorHandler->fatalError('The price method of WebGUI::Commerce::Item must be overridden.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -195,6 +199,7 @@ Returns the type (namespace) of the item.
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
sub type {
|
sub type {
|
||||||
|
my $self = shift;
|
||||||
return $self->session->errorHandler->fatalError('The type method of WebGUI::Commerce::Item must be overridden.');
|
return $self->session->errorHandler->fatalError('The type method of WebGUI::Commerce::Item must be overridden.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,7 @@ Overload default constructor to glue in a WebGUI::Product object.
|
||||||
sub new {
|
sub new {
|
||||||
my ($class, $session, $sku, $product, $variantId);
|
my ($class, $session, $sku, $product, $variantId);
|
||||||
$class = shift;
|
$class = shift;
|
||||||
|
$session = shift;
|
||||||
$variantId = shift;
|
$variantId = shift;
|
||||||
|
|
||||||
$product = WebGUI::Product->getByVariantId($session,$variantId);
|
$product = WebGUI::Product->getByVariantId($session,$variantId);
|
||||||
|
|
|
||||||
|
|
@ -292,12 +292,12 @@ Returns an array reference of WebGUI::ProfileField objects that are marked "requ
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
sub getRequiredFields {
|
sub getRequiredFields {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my @fields = ();
|
my @fields = ();
|
||||||
foreach my $fieldName ($self->session->db->buildArray("select fieldName from userProfileField where required=1 order by sequenceNumber")) {
|
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));
|
push(@fields,WebGUI::ProfileField->new($self->session,$fieldName));
|
||||||
}
|
}
|
||||||
return \@fields;
|
return \@fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue