Enable setting checkresponsible in the edit jobset form

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy
2013-10-07 10:46:10 -04:00
parent 3e1f930928
commit 58ad3b4b6c
2 changed files with 11 additions and 3 deletions

View File

@ -229,7 +229,11 @@ sub updateJobset {
error($c, "Invalid input name $name.") unless $name =~ /^[[:alpha:]][\w-]*$/;
error($c, "Invalid input type $type.") unless defined $c->stash->{inputTypes}->{$type};
my $input = $jobset->jobsetinputs->create({ name => $name, type => $type });
my $input = $jobset->jobsetinputs->create({
name => $name,
type => $type,
checkresponsible => $c->stash->{params}->{"input-$baseName-checkresponsible"}
});
# Set the values for this input.
my @values = ref($values) eq 'ARRAY' ? @{$values} : ($values);