Merge pull request #921 from Ma27/email-notification-create-jobset

Make it possible to enable email notifications when creating a jobset
This commit is contained in:
Graham Christensen 2021-04-26 11:22:17 -04:00 committed by GitHub
commit 18c02afe77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,6 +126,7 @@ sub create_jobset : Chained('projectChain') PathPart('create-jobset') Args(0) {
$c->stash->{template} = 'edit-jobset.tt'; $c->stash->{template} = 'edit-jobset.tt';
$c->stash->{create} = 1; $c->stash->{create} = 1;
$c->stash->{totalShares} = getTotalShares($c->model('DB')->schema); $c->stash->{totalShares} = getTotalShares($c->model('DB')->schema);
$c->stash->{emailNotification} = $c->config->{email_notification} // 0;
} }