Download & Extend

"More" links to wrong path in OG calnedar block

Project:OG Calendar
Version:5.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

"More" link at the bottom corner of OG calendar block links to the currently display node id. It should get the id of the current group.

The line 65 in og_calendar.module,

<?php
  $output
.= theme('event_more_link', 'og_calendar/'.arg(1));
?>

should be like,

<?php
  $node
= og_get_group_context(); // Line 19
 
$gid = $node->nid; // Remember group id

  // ... ... ...

 
$output .= theme('event_more_link', 'og_calendar/'.$gid);
?>
nobody click here