Skip to content

Commit

Permalink
Fixed url encoding issue with modal window
Browse files Browse the repository at this point in the history
  • Loading branch information
sarbajitdutta committed Mar 5, 2018
1 parent aaa22c8 commit b26088c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function get_profile_by_cwid($args) {
}

if(count($all_author_nodes) > 0) {
print '<div><a href="/publications/list?f[0]=publication_year:['.date('Y', strtotime($date_range->start_date)) . ' TO ' . date('Y', strtotime($date_range->end_date)).']&f[1]=publication_author_names:'.$first_name.' ' . $last_name . $author_appt_current.'">'.count($all_author_nodes).' Publications</a></div>';
print '<div><a href="/publications/list?f[0]=publication_year:['.date('Y', strtotime($date_range->start_date)) . ' TO ' . date('Y', strtotime($date_range->end_date)).']&f[1]=publication_author_names:'.rawurlencode($first_name.' ' . $last_name . $author_appt_current).'">'.count($all_author_nodes).' Publications</a></div>';
}

print '<hr>';
Expand Down Expand Up @@ -175,4 +175,4 @@ function get_profile_by_cwid($args) {
// Exclude "batch" url from admin theme view, fix for export DOC
function publication_profile_modal_admin_paths_alter(&$paths) {
$paths['batch'] = FALSE;
}
}

0 comments on commit b26088c

Please sign in to comment.