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

Error "core_group\customfield\group_handler::get_instance_context(): Argument #1 ($instanceid) must be of type int, null given" when duplicating an activity

XMLWordPrintable

      Steps to reproduce

      1. Login as admin.
      2. Go to Site administration > Course > Groups > Group custom fields.
      3. Add a category and create a custom field (I created an optional checkbox).
      4. Create a course.
      5. Add a group.
      6. Create an activity (for instance, an assignment).
      7. Duplicate the activity.

       

      Expected behaviour

      The activity is duplicated.

       

      Current behaviour

      The following error is displayed: 

      Exception - core_group\customfield\group_handler::get_instance_context(): Argument #1 ($instanceid) must be of type int, null given, called in [dirroot]/group/classes/customfield/group_handler.php on line 170

       

      Reported by marycooch  

            santoshnagargoje Santosh Nagargoje
            sarjona Sara Arjona (@sarjona)
            Dinesh Dinesh
            Jun Pataleta Jun Pataleta
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            1 Vote for this issue
            Watchers:
            9 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, 32 minutes
                1h 32m

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