From be3ca0dd84f0e5217e20e209313ce149a60b00d4 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Fri, 5 Jul 2013 14:44:29 -0400 Subject: [PATCH] Fix jobset update Signed-off-by: Shea Levy --- src/lib/Hydra/Controller/Jobset.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/Jobset.pm b/src/lib/Hydra/Controller/Jobset.pm index e102dbdb..cb52f68d 100644 --- a/src/lib/Hydra/Controller/Jobset.pm +++ b/src/lib/Hydra/Controller/Jobset.pm @@ -284,7 +284,7 @@ sub checkInputValue { sub updateJobset { my ($c, $jobset) = @_; - my $jobsetName = $c->stash->{jobsetName} or $jobset->name; + my $jobsetName = $c->stash->{jobsetName} // $jobset->name; error($c, "Invalid jobset name: ‘$jobsetName’") if $jobsetName !~ /^$jobsetNameRE$/; # When the expression is in a .scm file, assume it's a Guile + Guix