"More" links to wrong path in OG calnedar block

Ki - April 2, 2009 - 17:58
Project:OG Calendar
Version:5.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

"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);
?>

 
 

Drupal is a registered trademark of Dries Buytaert.