From ec7073659e189d3c617f7aff10e1ada79c2c1d87 Mon Sep 17 00:00:00 2001 From: Karsten Heiken Date: Sat, 29 Oct 2011 15:02:35 +0000 Subject: [PATCH] Fix issues with creation/copying of experiments --- application/views/experiments/new.php | 48 +++++++++++++++++---------- 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/application/views/experiments/new.php b/application/views/experiments/new.php index 9b3f0ba..4f7561d 100644 --- a/application/views/experiments/new.php +++ b/application/views/experiments/new.php @@ -1,12 +1,15 @@ load->view('header');?> -
-

» »

- -
+ +

@@ -102,20 +105,21 @@ input->post('param-' . $param['id']); + } else { + if(isset($copy_params) && isset($copy_params[$i]['value'])) { + $value = $copy_params[$i]['value']; + } else { + $value = $param['default_value']; + } + } + if ($param['type'] == 'boolean'): ?> - + input->post('param-' . $param['id']); - } else { - if(isset($copy_params) && isset($copy_params[$i]['value'])) { - $value = $copy_params[$i]['value']; - } else { - $value = $param['default_value']; - } - } ?> - +