Make it possible to enable email notifications when creating a jobset

The checkbox is only enabled if `email_notification = 1` is set in
`hydra.conf`. However, when creating jobset (in contrast to the edit
form), the checkbox is always disabled because the `emailNotification`
parameter in Catalyst's stash was missing.
This commit is contained in:
Maximilian Bosch 2021-04-24 19:47:20 +02:00
parent 85e299d3d7
commit 21ed005c84
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

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;
} }