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

Editing a calendar event of type category and removing the category results in an error

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Before upgrade

      1. Log in as admin.
      2. Go to calendar and click New event button.
      3. Set the Event type to category, click [x] to remove the pre-selected category and click save.
      4. Close the event modal and note the event has been created.
      5. Run upgrade.
      6. Make sure the problematic event has been removed.
      7. Make sure you don't see any error messages.

      After upgrade

      1. As admin go to calendar and click New event button.
      2. Set the Event type to category and click [x] to remove the pre-selected category and click save.
      3. Make sure validation message is displayed "Please sleect a category".
      4. Make sure the event is not saved.
      5. Still in the Calendar, create an user event.
      6. Edit this event, set the Event type to category, click [x] to remove the pre-selected category and click save.
      7. Make sure validation message is displayed "Please select a category".
      8. Make sure the event is not saved.
      Show
      Before upgrade Log in as admin. Go to calendar and click New event button. Set the Event type to category , click [x] to remove the pre-selected category and click save. Close the event modal and note the event has been created. Run upgrade. Make sure the problematic event has been removed. Make sure you don't see any error messages. After upgrade As admin go to calendar and click New event button. Set the Event type to category and click [x] to remove the pre-selected category and click save. Make sure validation message is displayed "Please sleect a category". Make sure the event is not saved. Still in the Calendar, create an user event. Edit this event, set the Event type to category , click [x] to remove the pre-selected category and click save. Make sure validation message is displayed "Please select a category". Make sure the event is not saved.
    • Affected Branches:
      MOODLE_310_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE
    • Pull from Repository:
    • Pull 3.10 Branch:
      MDL-70648-310
    • Pull 3.11 Branch:
      MDL-70648-311
    • Pull Master Branch:
      MDL-70648-master
    • Story Points:
      0
    • Sprint:
      Internationals - 3.11 Sprint 4, Internationals - 3.11 Sprint 5

      Description

      One of my users has discovered an account breaking bug...

      To break your account... create calendar event , edit it, change type to category but nul the category field. save it and your account is broken.

      then every time that user logs in, they get the following error message:

      Exception - Call to a member function get_proxied_instance() on null

      I was able to solve by deleting the user and re-adding.  Not the most elegant solution, but it seems to have resolved.

        Attachments

        1. MDL-70648 no category.png
          MDL-70648 no category.png
          82 kB
        2. MDL-70648 broken.png
          MDL-70648 broken.png
          162 kB
        3. Screenshot_1.jpg
          Screenshot_1.jpg
          68 kB
        4. Screenshot_2.jpg
          Screenshot_2.jpg
          37 kB

          Activity

            People

            Assignee:
            lameze Simey Lameze
            Reporter:
            zachguithues Zach Guithues
            Peer reviewer:
            Shamim Rezaie Shamim Rezaie
            Integrator:
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Tester:
            Janelle Barcega Janelle Barcega
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              8/Mar/21

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 51 minutes
                4h 51m