diff --git a/src/lib/Hydra/Controller/Jobset.pm b/src/lib/Hydra/Controller/Jobset.pm index 529a456b..4947f982 100644 --- a/src/lib/Hydra/Controller/Jobset.pm +++ b/src/lib/Hydra/Controller/Jobset.pm @@ -162,7 +162,7 @@ sub edit : Chained('jobsetChain') PathPart Args(0) { requireProjectOwner($c, $c->stash->{project}); $c->stash->{template} = 'edit-jobset.tt'; - $c->stash->{edit} = 1; + $c->stash->{edit} = !defined $c->stash->{params}->{cloneJobset}; $c->stash->{cloneJobset} = defined $c->stash->{params}->{cloneJobset}; $c->stash->{totalShares} = getTotalShares($c->model('DB')->schema); } diff --git a/src/root/jobset.tt b/src/root/jobset.tt index e07cbb6e..63ef29b9 100644 --- a/src/root/jobset.tt +++ b/src/root/jobset.tt @@ -51,7 +51,7 @@