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

"activity" is already used as a key name in "the following 'activity' exists" behat step

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.11.11, 4.1
    • Assignment

      When trying to use the "in following "activity" exists" behat step with mod_assign, activity is already defined as a key in the table node that specifies the type of activity to create.

      This conflicts with the "activity" (aka academic instructions) field on mod_assign.

      It is suggested (in Moodle dev chat) that this is something for the mod_assign data generator to deal with in mod/assign/tests/generator/lib.php

       

      if (property_exists($instance, 'activityinstructions')) {
       // Behat generators use the 'activity' field so support an alternative name instead. 
      $instance->activity = $instance->activityinstructions; 
      unset($instance->activityinstructions); 
      }

       

       

            mhughes2k Michael Hughes
            mhughes2k Michael Hughes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

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