removing duplicate warning message for missing project in create experiment
Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/52dc55aa Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/52dc55aa Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/52dc55aa Branch: refs/heads/0.15-release-branch Commit: 52dc55aa8f1f707cb400c0b2ffe98def9ba7da19 Parents: 84354dd Author: Supun Nakandala <[email protected]> Authored: Thu Jul 16 18:44:16 2015 +0530 Committer: Supun Nakandala <[email protected]> Committed: Thu Jul 16 18:44:16 2015 +0530 ---------------------------------------------------------------------- app/libraries/ProjectUtilities.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/52dc55aa/app/libraries/ProjectUtilities.php ---------------------------------------------------------------------- diff --git a/app/libraries/ProjectUtilities.php b/app/libraries/ProjectUtilities.php index 76d99ae..61e5a80 100644 --- a/app/libraries/ProjectUtilities.php +++ b/app/libraries/ProjectUtilities.php @@ -91,10 +91,6 @@ class ProjectUtilities } } echo '</select>'; - if (sizeof($userProjects) == 0) { - CommonUtilities::print_warning_message('<p>You must create a project before you can create an experiment. - Click <a href="' . URL::to('/') . '/project/create">here</a> to create a project.</p>'); - } } //moved from create project view. @@ -135,14 +131,14 @@ class ProjectUtilities $project = new Project(); $project->owner = $username; $project->name = "Default Project"; - $project->description = "This is the default project for user " + $project->owner; + $project->description = "This is the default project for user " . $project->owner; $projectId = null; try { $projectId = Airavata::createProject(Config::get('pga_config.airavata')['gateway-id'], $project); - + } catch (InvalidRequestException $ire) { CommonUtilities::print_error_message('InvalidRequestException!<br><br>' . $ire->getMessage()); } catch (AiravataClientException $ace) {
