From fbd48f5684fb91ee8bc756c66f46cec93e4e1b5c Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Tue, 14 Jul 2015 07:39:29 +0000 Subject: [PATCH] Make cloning of jobsets work again. (cherry picked from commit 706551453800fb3a4bb3d8b681dad157a8cea98b) --- src/lib/Hydra/Controller/Jobset.pm | 2 +- src/root/jobset.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 @@