Fix for bug 1528:
Now the edit icon in day view for course activity events takes you to the activity update form, and not the view. You can still go to the activity view by clicking the activity name in the event title.
This commit is contained in:
+3
-3
@@ -578,11 +578,11 @@ function calendar_print_event($event) {
|
||||
if (calendar_edit_event_allowed($event)) {
|
||||
echo '<div align="right">';
|
||||
if (empty($event->cmid)) {
|
||||
$editlink = CALENDAR_URL.'event.php?action=edit&id='.$event->id;
|
||||
$editlink = CALENDAR_URL.'event.php?action=edit&id='.$event->id;
|
||||
$deletelink = CALENDAR_URL.'event.php?action=delete&id='.$event->id;
|
||||
} else {
|
||||
$editlink = "$CFG->wwwroot/mod/$event->modulename/view.php?id=$event->cmid";
|
||||
$deletelink = "$CFG->wwwroot/course/mod.php?delete=$event->cmid";
|
||||
$editlink = $CFG->wwwroot.'/course/mod.php?update='.$event->cmid.'&return=true';
|
||||
$deletelink = $CFG->wwwroot.'/course/mod.php?delete='.$event->cmid;
|
||||
}
|
||||
echo ' <a href="'.$editlink.'"><img
|
||||
src="'.$CFG->pixpath.'/t/edit.gif" alt="'.get_string('tt_editevent', 'calendar').'"
|
||||
|
||||
Reference in New Issue
Block a user