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

event_profile_field_test fails if a plugin has created additional categories

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.7.7, 3.8.4
    • 3.7.6, 3.8.2, 3.8.3
    • User management
    • MOODLE_37_STABLE, MOODLE_38_STABLE
    • MOODLE_37_STABLE, MOODLE_38_STABLE
    • MDL-68503_master
    • Hide

      Steps to reproduce:

      1. Install attached local_test plugin. This creates 2 new user_info_categories records when it installs.
      2. Run PHPUnit init
      3. Run lib\tests\event_profile_field_test.php
        • All tests should pass
      Show
      Steps to reproduce: Install attached local_test plugin. This creates 2 new user_info_categories records when it installs. Run PHPUnit init Run lib\tests\event_profile_field_test.php All tests should pass

      Steps to reproduce:

      1. Install attached local_test plugin. This creates 2 new user_info_categories records when it installs.
      2. Run PHPUnit init
      3. Run lib\tests\event_profile_field_test.php
        • Expected: Tests pass
        • Actual: test_user_info_category_updated_event fails, debugging message is generated "Debugging: Error: mdb->get_record() found more than one record!"

      This is because the categories created by the test have an absolute sortorder. If a plugin has created any at install, you might have multiple categories with the same sortoder.

        1. image-2020-05-19-10-16-59-905.png
          174 kB
          Janelle Barcega

            marxjohnson Mark Johnson
            marxjohnson Mark Johnson
            Tim Hunt Tim Hunt
            Andrew Lyons Andrew Lyons
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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