rfe #640: Refactored autocommit and autocomment
Autocommit assets like CS posts or Calendar Events can now be added before the parent is committed. They will go into the same version tag as their parent.
This commit is contained in:
parent
71fc839c83
commit
99a9da626d
22 changed files with 218 additions and 259 deletions
|
|
@ -582,6 +582,14 @@ 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' ];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub purge {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue