Made it possible to actually save Treads again....

This commit is contained in:
Martin Kamerbeek 2008-10-23 12:20:22 +00:00
parent d5dfa451df
commit 74e3f42fe4

View file

@ -582,14 +582,18 @@ sub postProcess {
$self->SUPER::postProcess;
}
#-------------------------------------------------------------------
sub processPropertiesFromFormPost {
my $self = shift;
if ($self->isNew && $self->getParent->getValue('useCaptcha')) {
my $captcha = $self->session->form->process("captcha","Captcha");
return [ 'invalid captcha' ];
}
}
if ($self->isNew && $self->getParent->getValue('useCaptcha')) {
my $captchaOk = $self->session->form->process("captcha","Captcha");
return [ 'invalid captcha' ] unless $captchaOk;
}
return $self->SUPER::processPropertiesFromFormPost;
}
#-------------------------------------------------------------------
sub purge {