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

assign::update_instance returns error Undefined property: stdClass::$markinganonymous

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5
    • Assignment
    • None
    • MOODLE_405_STABLE
    • MDL-84484-405
    • Hide

      Reproduction

      • Clone the dummy plugin and branch to your Moodle install:

      git clone -b MDL-84484 https://github.com/Fragonite/moodle-local_tracker_demo.git local/tracker_demo

       

      • Initialise PHPUnit.
      • Run the plugin tests:

      php vendor/bin/phpunit --testsuite local_tracker_demo_testsuite

       

      • Verify the test fails with the expected error.

       

      Testing

      • Follow the reproduction steps.
      • Apply the patch.
      • Verify the test passes.

       

      Show
      Reproduction Clone the dummy plugin and branch to your Moodle install: git clone -b MDL- 84484 https: //github.com/Fragonite/moodle-local_tracker_demo.git local/tracker_demo   Initialise PHPUnit. Run the plugin tests: php vendor/bin/phpunit --testsuite local_tracker_demo_testsuite   Verify the test fails with the expected error.   Testing Follow the reproduction steps. Apply the patch. Verify the test passes.  
    • Hide

      Code verified against automated checks.

      Checked MDL-84484 using repository: https://github.com/catalyst/moodle

      More information about this report

      Built on: Tue Feb 11 06:37:22 AM UTC 2025

      Show
      Code verified against automated checks. Checked MDL-84484 using repository: https://github.com/catalyst/moodle MOODLE_405_STABLE (0 errors / 0 warnings) [branch: MDL-84484-405 | CI Job ] main (0 errors / 0 warnings) [branch: MDL-84484 | CI Job ] More information about this report Built on: Tue Feb 11 06:37:22 AM UTC 2025

      Calls to assign_update_instance() via update_module() can result in the error:

       

      Undefined property: stdClass::$markinganonymous

       

      This was discovered when adding Moodle 4.5 support to an internal plugin and running tests.

            avdb Alexander Van der Bellen
            avdb Alexander Van der Bellen
            Andrew Gosali Andrew Gosali
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.