From 9933dd2f27f1d289cbedce943c6900709ed5cf0a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 17 Nov 2008 13:39:01 +0000 Subject: [PATCH] --- src/HydraFrontend/lib/HydraFrontend/Controller/Root.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/HydraFrontend/lib/HydraFrontend/Controller/Root.pm b/src/HydraFrontend/lib/HydraFrontend/Controller/Root.pm index 826c3918..57eb14c8 100644 --- a/src/HydraFrontend/lib/HydraFrontend/Controller/Root.pm +++ b/src/HydraFrontend/lib/HydraFrontend/Controller/Root.pm @@ -136,6 +136,7 @@ sub updateProject { # current ones, then create the new values. $input->jobsetinputalts->delete_all; my $values = $c->request->params->{"jobset-$baseName-input-$baseName2-values"}; + $values = [] unless defined $values; $values = [$values] unless ref($values) eq 'ARRAY'; my $altnr = 0; foreach my $value (@{$values}) {