You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2015/10/20 17:43:41 UTC

airavata-php-gateway git commit: fixing job state not shown issue

Repository: airavata-php-gateway
Updated Branches:
  refs/heads/master 2b94fde7b -> b24539af4


fixing job state not shown issue


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/b24539af
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/b24539af
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/b24539af

Branch: refs/heads/master
Commit: b24539af434a290750ae1841beff55c09b60a606
Parents: 2b94fde
Author: scnakandala <su...@gmail.com>
Authored: Tue Oct 20 11:43:34 2015 -0400
Committer: scnakandala <su...@gmail.com>
Committed: Tue Oct 20 11:43:34 2015 -0400

----------------------------------------------------------------------
 app/controllers/ExperimentController.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/b24539af/app/controllers/ExperimentController.php
----------------------------------------------------------------------
diff --git a/app/controllers/ExperimentController.php b/app/controllers/ExperimentController.php
index 527f8b3..e01163f 100755
--- a/app/controllers/ExperimentController.php
+++ b/app/controllers/ExperimentController.php
@@ -1,5 +1,7 @@
 <?php
 
+use Airavata\Model\Status\JobState;
+
 class ExperimentController extends BaseController
 {
 
@@ -82,8 +84,8 @@ class ExperimentController extends BaseController
             $project = ProjectUtilities::get_project($experiment->projectId);
             $expVal = ExperimentUtilities::get_experiment_values($experiment, $project);
             $jobDetails = ExperimentUtilities::get_job_details($experiment->experimentId);
-            if(isset($jobDetails->jobStatus)){
-                $expVal["jobState"] = JobState::$__names[array_values($jobDetails->jobStatus)];
+            if(isset($jobDetails[0]->jobStatus)){
+                $expVal["jobState"] = JobState::$__names[$jobDetails[0]->jobStatus->jobState];
             }else{
                 $expVal["jobState"] = "";
             }