Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-2320

Owner of booking cannot change series

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0.8, 2.1.5, 2.2.1
    • 1.9.9
    • Block: Mrbs
    • None
    • Ubuntu Linux
    • MySQL
    • MOODLE_19_STABLE
    • MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE

    Description

      When the owner of a repeated booking clicks on a booking, only one instance of the booking series can be edited.

      The error occurs because of this code in view_entry.php:

      if($record=get_record('mrbs_entry','id',$id)) {
      if(strtolower($record->create_by)==strtolower($USER->username))

      { Header("Location: edit_entry.php?id=$id"); }

      }

      This redirection does not include the "edit_type" parameter, and the editing therefore defaults to a single occurrence of the booking.

      Proposed solution: Remove the five lines mentioned above.

      Attachments

        Issue Links

          Activity

            People

              davosmith Davo Smith
              oz1cz Claus Tondering
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Jan/12