Make label overrideable in formField so that required fields

can be highlighted with an asterisk in the Profile tab for Operation/User.pm
This commit is contained in:
Colin Kuskie 2005-12-12 18:30:48 +00:00
parent e7b1b16efc
commit 156de5ea88
2 changed files with 3 additions and 2 deletions

View file

@ -124,7 +124,7 @@ sub formField {
my $self = shift;
my $properties = shift || {};
my $withWrapper = shift;
$properties->{label} = $self->getLabel;
$properties->{label} = $self->getLabel unless $properties->{label};
$properties->{fieldType} = $self->get("fieldType");
$properties->{name} = $self->getId;
my $values = WebGUI::Operation::Shared::secureEval($self->get("possibleValues")) || {};