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

Course participation report doesn't allow you to select which actions to show

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.4
    • Fix Version/s: 1.9.5
    • Component/s: Course, Other
    • Labels:
      None
    • Environment:
      PHP 5.2.6 (cli) (built: Jul 29 2008 16:20:31)
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      When selecting 'Reports > Participation report' in a Moodle course you can't change the 'Show actions' select box to filter only view/post participation for an activity.

      The following code (/course/report/participation/index.php) always evaluates to false, resetting the $action variable:

      $actionoptions = array('' => $strallactions,
      'view' => $strview,
      'post' => $strpost,);
      if (!in_array($action, $actionoptions))

      { $action = ''; }

      Changing the in_array test to use array_keys($actionoptions) allows you to filter different actions

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stronk7 Eloy Lafuente (stronk7)
                Reporter:
                pholden Paul Holden
                Tester:
                Helen Foster
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón, Adrian Greeve, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/May/09