static function getNextUrl($urlValue, $query = 'reset=1', $absolute = FALSE, $instanceID = NULL, $drilldownReport = array()) {
if ($instanceID) {
$drilldownInstanceID = false;
- if (array_key_exists($urlValue, $drilldownReport))
+ if (array_key_exists($urlValue, $drilldownReport))
$drilldownInstanceID = CRM_Core_DAO::getFieldValue('CRM_Report_DAO_Instance', $instanceID, 'drilldown_id', 'id');
- if (!$drilldownInstanceID)
+ if (!$drilldownInstanceID)
$drilldownInstanceID = self::getInstanceIDForValue($urlValue);
if ($drilldownInstanceID) {
$wrapper = new CRM_Utils_Wrapper();
$arguments['urlToSession'] = array(
- array('urlVar' => 'instanceId',
+ array(
+ 'urlVar' => 'instanceId',
'type' => 'Positive',
'sessionVar' => 'instanceId',
'default' => 'null',
- ));
+ ),
+ );
+ $arguments['ignoreKey'] = TRUE;
+
$messages[] = $wrapper->run($templateInfo['name'], NULL, $arguments);
}
else {
static function getInstanceList($reportUrl) {
static $instanceDetails = array();
-
+
if (!array_key_exists($reportUrl, $instanceDetails )) {
$instanceDetails[$reportUrl] = array();