Merged in dashboards2 (pull request #2064)

Correction to flipped times call in functions
This commit is contained in:
Julio Cesar Laura Avendaño
2015-04-30 19:39:47 -04:00

View File

@@ -88,8 +88,8 @@ class ReportingIndicators extends Api
$indicatorsObj = new \ProcessMaker\BusinessModel\ReportingIndicators();
$response = $indicatorsObj->getPeiCompleteData
($indicator_uid,
new \DateTime($measure_date),
new \DateTime($compare_date),
new \DateTime($measure_date),
$language);
return $response;
} catch (\Exception $e) {
@@ -113,8 +113,8 @@ class ReportingIndicators extends Api
$indicatorsObj = new \ProcessMaker\BusinessModel\ReportingIndicators();
$response = $indicatorsObj->getUeiCompleteData
($indicator_uid,
new \DateTime($measure_date),
new \DateTime($compare_date),
new \DateTime($measure_date),
$language);
return $response;
} catch (\Exception $e) {