diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2012-05-09 19:09:24 +0200 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2012-05-09 19:09:24 +0200 |
commit | cea13ac10598078a6489650bf69c6efc45231e03 (patch) | |
tree | 25af2cf7bab261963301df88f6c479af5b371f6b /views/default/forms/event_calendar | |
parent | 7f1d64ed5f005e701af71023798346193a445401 (diff) | |
download | elgg-cea13ac10598078a6489650bf69c6efc45231e03.tar.gz elgg-cea13ac10598078a6489650bf69c6efc45231e03.tar.bz2 |
fixes for group event bugs
Diffstat (limited to 'views/default/forms/event_calendar')
-rw-r--r-- | views/default/forms/event_calendar/edit.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/views/default/forms/event_calendar/edit.php b/views/default/forms/event_calendar/edit.php index d1c7967c3..278fdddce 100644 --- a/views/default/forms/event_calendar/edit.php +++ b/views/default/forms/event_calendar/edit.php @@ -140,7 +140,6 @@ $body = '<div class="event-calendar-edit-form">'; $body .= elgg_view('input/hidden',array('name'=>'event_action', 'value'=>$event_action)); $body .= elgg_view('input/hidden',array('name'=>'event_guid', 'value'=>$event_guid)); -//$body .= elgg_view('input/hidden',array('name'=>'group_guid', 'value'=>$vars['group_guid'])); $body .= '<div class="event-calendar-edit-form-block event-calendar-edit-form-top-block">'; @@ -164,10 +163,14 @@ $body .= elgg_view("input/tags",array('name' => 'tags','class'=>'event-calendar- $body .= '</p>'; $body .= '<p class="event-calendar-description">'.$prefix['event_tags'].elgg_echo('event_calendar:event_tags_description').'</p>'; -$body .= '<p><label>'.elgg_echo("event_calendar:calendar_label").'</label>'; -$body .= elgg_view('event_calendar/container',array('container_guid'=>$vars['group_guid'])); -$body .= '</p>'; -$body .= '<p class="event-calendar-description">'.$prefix['calendar'].elgg_echo('event_calendar:calendar_description').'</p>'; +if ($event || !$vars['group_guid']) { + $body .= '<p><label>'.elgg_echo("event_calendar:calendar_label").'</label>'; + $body .= elgg_view('event_calendar/container',array('container_guid'=>$vars['group_guid'])); + $body .= '</p>'; + $body .= '<p class="event-calendar-description">'.$prefix['calendar'].elgg_echo('event_calendar:calendar_description').'</p>'; +} else { + $body .= elgg_view('input/hidden',array('name'=>'group_guid', 'value'=>$vars['group_guid'])); +} if($event_calendar_bbb_server_url) { $body .= '<p>'; |