Skip to content

Commit

Permalink
Merge pull request #456 from colemanw/CRM-20751
Browse files Browse the repository at this point in the history
CRM-20751 - Handle array query data in civicrm_views_url
  • Loading branch information
colemanw authored Jun 21, 2017
2 parents f982a2e + 0da3929 commit 384a955
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/views/civicrm.views.inc
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,12 @@ function civicrm_views_url($path, $query, $absolute = FALSE) {
// would normally pass it as $options['query'] in url($path, $options)), but
// doing so is required for Drupal alias support.
if (!empty($query)) {
parse_str($query, $query_data);
if (is_array($query)) {
$query_data = $query;
}
else {
parse_str($query, $query_data);
}
ksort($query_data);
$query = http_build_query($query_data);
$path .= "?{$query}";
Expand Down

0 comments on commit 384a955

Please sign in to comment.