Moose override commit in Thread and CS.
This commit is contained in:
parent
45b6f45e4b
commit
794b26d325
2 changed files with 10 additions and 10 deletions
|
|
@ -874,9 +874,9 @@ in that case.
|
|||
|
||||
=cut
|
||||
|
||||
sub commit {
|
||||
override commit => sub {
|
||||
my $self = shift;
|
||||
$self->next::method;
|
||||
super();
|
||||
my $cron = undef;
|
||||
if ($self->getMailCronId) {
|
||||
$cron = WebGUI::Workflow::Cron->new($self->session, $self->getMailCronId);
|
||||
|
|
@ -898,7 +898,7 @@ sub commit {
|
|||
} else {
|
||||
$cron->set({enabled=>0,title=>$self->getTitle." ".$i18n->get("mail"), minuteOfHour=>"*/".($self->getMailInterval/60)});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue