From 0342cf4681ca29788f5536c30f83ed6ccaac1e8c Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 21 May 2019 08:57:31 +0200 Subject: [PATCH] Fix download of IMPEx parameters --- php/classes/RequestMgr.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/php/classes/RequestMgr.php b/php/classes/RequestMgr.php index 8af76db..9b962e2 100644 --- a/php/classes/RequestMgr.php +++ b/php/classes/RequestMgr.php @@ -284,7 +284,7 @@ class RequestMgr extends AmdaObjectMgr { $argsTab['param'] = array_unique($params); $argsTab['startTime'] = $tab->{'multi-plot-linked'} ? $obj->startDate : $tab->startDate; - $argsTab['stopTime'] = $tab->{'multi-plot-linked'} ? $obj->startDate : $tab->stopDate; + $argsTab['stopTime'] = $tab->{'multi-plot-linked'} ? $obj->stopDate : $tab->stopDate; } } if (count($argsTab) > 0) $args[] = $argsTab; @@ -314,8 +314,8 @@ class RequestMgr extends AmdaObjectMgr { // tab is not defined, iterate over $obj->tabs? $argsTab['param'] = array_unique($params); - $argsTab['startTime'] = $tab->{'multi-plot-linked'} ? $obj->startDate : $tab->startDate; - $argsTab['stopTime'] = $tab->{'multi-plot-linked'} ? $obj->startDate : $tab->stopDate; + $argsTab['startTime'] = $obj->startDate; + $argsTab['stopTime'] = $obj->stopDate; } if (count($argsTab) > 0) $args[] = $argsTab; -- libgit2 0.21.2