* Fix a weird bug.
This commit is contained in:
parent
cb8e3acb2a
commit
465612fc73
|
@ -100,10 +100,12 @@ sub updateProject {
|
||||||
|
|
||||||
my $jobset;
|
my $jobset;
|
||||||
|
|
||||||
|
my $description = trim $c->request->params->{"jobset-$baseName-description"};
|
||||||
|
|
||||||
if ($baseName =~ /^\d+$/) { # numeric base name is auto-generated, i.e. a new entry
|
if ($baseName =~ /^\d+$/) { # numeric base name is auto-generated, i.e. a new entry
|
||||||
$jobset = $project->jobsets->create(
|
$jobset = $project->jobsets->create(
|
||||||
{ name => $jobsetName
|
{ name => $jobsetName
|
||||||
, description => trim $c->request->params->{"jobset-$baseName-description"}
|
, description => $description
|
||||||
, nixexprpath => $nixExprPath
|
, nixexprpath => $nixExprPath
|
||||||
, nixexprinput => $nixExprInput
|
, nixexprinput => $nixExprInput
|
||||||
});
|
});
|
||||||
|
@ -111,7 +113,7 @@ sub updateProject {
|
||||||
$jobset = ($project->jobsets->search({name => $baseName}))[0];
|
$jobset = ($project->jobsets->search({name => $baseName}))[0];
|
||||||
die unless defined $jobset;
|
die unless defined $jobset;
|
||||||
$jobset->name($jobsetName);
|
$jobset->name($jobsetName);
|
||||||
$jobset->description(trim $c->request->params->{"jobset-$baseName-description"});
|
$jobset->description($description);
|
||||||
$jobset->nixexprpath($nixExprPath);
|
$jobset->nixexprpath($nixExprPath);
|
||||||
$jobset->nixexprinput($nixExprInput);
|
$jobset->nixexprinput($nixExprInput);
|
||||||
$jobset->update;
|
$jobset->update;
|
||||||
|
|
Loading…
Reference in a new issue