Fix handling of multi-form and multiple select form elements by emitting

a hidden form variable to make sure the form element was in the generated form.
Changes in User and ProfileField to support this.
This commit is contained in:
Colin Kuskie 2009-01-26 21:03:23 +00:00
parent 83d1203de9
commit 41da738e0e
9 changed files with 134 additions and 17 deletions

View file

@ -240,6 +240,21 @@ sub isDynamicCompatible {
#-------------------------------------------------------------------
=head2 isInRequest ( )
=cut
sub isInRequest {
my $self = shift;
my $form = $self->session->form;
my $name = $self->get('name');
my $isInRequest = $form->hasParam($name.'_file')
|| $form->hasParam($self->privateName('action'));
return $isInRequest;
}
#-------------------------------------------------------------------
=head2 toHtml ( )
Renders a file upload control.