- fix: bug in EMS purge
- fix: bug in poll where you can't edit it to have less answers
This commit is contained in:
parent
c1b95c7a62
commit
5167b279f5
5 changed files with 37 additions and 26 deletions
|
|
@ -440,6 +440,23 @@ sub getValueFromPost {
|
|||
}
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 isProfileEnabled ( session )
|
||||
|
||||
A class method. Returns a 1 if this control can be used by the profiling system. In general that means that the
|
||||
field is safe for dynamic generation.
|
||||
|
||||
=cut
|
||||
|
||||
|
||||
sub isProfileEnabled {
|
||||
my $class = shift;
|
||||
my $session = shift;
|
||||
return $class->definition($session)->[0]{profileEnabled};
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 new ( session, parameters )
|
||||
|
|
|
|||
|
|
@ -139,6 +139,7 @@ sub toHtml {
|
|||
$self->session->errorHandler->error("Couldn't compile form control: ".$type.". Root cause: ".$@);
|
||||
next;
|
||||
}
|
||||
next unless $class->isProfileEnabled($self->session);
|
||||
$options{$type} = $class->getName($self->session);
|
||||
}
|
||||
$self->set('options',\%options);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue