Override new in Form plugins that set their options, so the options are always available. Fixes bug #12190.
This commit is contained in:
parent
1c08796d6c
commit
4b663fdf0b
14 changed files with 124 additions and 185 deletions
|
|
@ -110,24 +110,8 @@ sub new {
|
|||
my $defaultValue = $self->get('defaultValue');
|
||||
$defaultValue =~ tr/ /_/;
|
||||
$self->set('defaultValue', $defaultValue);
|
||||
$self->set("options", $self->session->datetime->getTimeZones());
|
||||
return $self;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 toHtml ( )
|
||||
|
||||
Renders a database connection picker control.
|
||||
|
||||
=cut
|
||||
|
||||
sub toHtml {
|
||||
my $self = shift;
|
||||
$self->set("options", $self->session->datetime->getTimeZones());
|
||||
return $self->SUPER::toHtml();
|
||||
}
|
||||
|
||||
|
||||
|
||||
1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue