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:
parent
85e299d3d7
commit
21ed005c84
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue