Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-23730

Course calender events by group..

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Inactive
    • Affects Version/s: 1.9.9
    • Fix Version/s: None
    • Component/s: Calendar
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      When events are created in a calendar at a course level and attributed to a particular group they are not identified as to which group they relate to - when you vuew the calendar month view - or the single event view..

      The Group icon appears but no group name is shows ( as it is when an activity or resource is attributed to a single group).
      Even when you go back to edit the calendar event there is no 'Group' setting there.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            rdrcti Ricardo Díaz added a comment -

            Patch to see the group when editing a calendar event. Tested in Moodle v1.9.19
            Archive ../moodle/calendar/event.php, line 309:

                    case 'edit':
                        if(empty($form)) {
                            $form->name = clean_text($event->name);
            ++ add ->         $form->groupid = clean_text($event->groupid);
                            $form->courseid = $event->courseid; // Not to update, but for date validation
                            $form->description = clean_text($event->description);

            Archive ../moodle/calendar/event_edit.html, line 12:

             
                 <td>
                   <input type="text" name="name" size="67" value="<?php p($form->name); ?>" />
                   <?php if (isset($err['name'])) formerr($err['name']); ?>
                 </td>
               </tr>
            ++   <tr>
            ++     <td style="vertical-align: top; text-align: right;">
            ++      <?php print_string('group', 'calendar'); ?>:
            ++     </td>
            ++     <td><?php $grupo_name=get_record_sql('SELECT name FROM '.$CFG->prefix.'groups WHERE id='.$form->groupid); echo $grupo_name->name; ?>
            ++     </td>
            ++   </tr>
               <tr>
                <td style="vertical-align: top; text-align: right;">
                  <?php print_string('eventdescription', 'calendar'); ?>:
               </td>

            Show
            rdrcti Ricardo Díaz added a comment - Patch to see the group when editing a calendar event. Tested in Moodle v1.9.19 Archive ../moodle/calendar/event.php , line 309: case 'edit': if(empty($form)) { $form->name = clean_text($event->name); ++ add -> $form->groupid = clean_text($event->groupid); $form->courseid = $event->courseid; // Not to update, but for date validation $form->description = clean_text($event->description); Archive ../moodle/calendar/event_edit.html , line 12: <td> <input type="text" name="name" size="67" value="<?php p($form->name); ?>" /> <?php if (isset($err['name'])) formerr($err['name']); ?> </td> </tr> ++ <tr> ++ <td style="vertical-align: top; text-align: right;"> ++ <?php print_string('group', 'calendar'); ?>: ++ </td> ++ <td><?php $grupo_name=get_record_sql('SELECT name FROM '.$CFG->prefix.'groups WHERE id='.$form->groupid); echo $grupo_name->name; ?> ++ </td> ++ </tr> <tr> <td style="vertical-align: top; text-align: right;"> <?php print_string('eventdescription', 'calendar'); ?>: </td>
            Hide
            marina Marina Glancy added a comment -

            We have detected that this issue has been inactive for over two years and also did not collect many votes. It is possible that it has been already implemented in a more recent version of Moodle, or it is not highly demanded. There are unlimited number of ways Moodle functinality can be expanded and improved but we would like to concentrate on the features that will benefit majority of users, and which can not be implemented as plugins. If you have a suggestion for improving Moodle core, and there is no open issue for it in the tracker, please start a new forum discussion to see how many other users agree with you, and then create a new issue providing as many details as possible.

            ==BLK2YIMP20141121==

            Show
            marina Marina Glancy added a comment - We have detected that this issue has been inactive for over two years and also did not collect many votes. It is possible that it has been already implemented in a more recent version of Moodle, or it is not highly demanded. There are unlimited number of ways Moodle functinality can be expanded and improved but we would like to concentrate on the features that will benefit majority of users, and which can not be implemented as plugins. If you have a suggestion for improving Moodle core, and there is no open issue for it in the tracker, please start a new forum discussion to see how many other users agree with you, and then create a new issue providing as many details as possible. ==BLK2YIMP20141121==

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: