Redirect to project page on trial creation

This commit is contained in:
Eike Foken
2011-08-31 03:55:51 +02:00
parent 7a1b33cffb
commit b3afe59aa4

View File

@@ -108,7 +108,8 @@ class Trials extends CI_Controller {
$this->load->library('program_runner', array('program_driver' => $program['driver'])); $this->load->library('program_runner', array('program_driver' => $program['driver']));
$this->program_runner->createJob($trialId); $this->program_runner->createJob($trialId);
redirect('trials/detail/' . $trialId, 'refresh'); //redirect('trials/detail/' . $trialId, 'refresh');
redirect('projects/detail/' . $projectId, 303);
} else { } else {
$this->messages->add(_('The trial could not be created.'), 'error'); $this->messages->add(_('The trial could not be created.'), 'error');
} }