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

Owner of booking cannot change series

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.9
    • Fix Version/s: 2.0.8, 2.1.5, 2.2.1
    • Component/s: Block: Mrbs
    • Labels:
      None
    • Environment:
      Ubuntu Linux
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      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

              Assignee:
              davosmith Davo Smith
              Reporter:
              oz1cz Claus Tondering
              Participants:
              Component watchers:
              Davo Smith
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Jan/12