* Urgh. `-' had special significance in HTML form parameters...

This commit is contained in:
Eelco Dolstra
2009-03-19 15:41:33 +00:00
parent af1e60a043
commit 163f3de2fa
2 changed files with 6 additions and 4 deletions

View File

@ -151,8 +151,8 @@ sub updateProject {
, nixexprinput => $nixExprInput
});
} else { # it's an existing jobset
$jobset = ($project->jobsets->search({name => $baseName}))[0];
die unless defined $jobset;
my $oldName = trim $c->request->params->{"jobset-$baseName-oldName"};
$jobset = ($project->jobsets->search({name => $oldName}))[0] or die;
$jobset->update(
{ name => $jobsetName, description => $description
, nixexprpath => $nixExprPath, nixexprinput => $nixExprInput });