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

H5P Interactive book does not show a submit button

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Test 1: H5P activity

      1. Login as admin
      2. Create a course and enroll a student it
      3. Create an H5P activity using the provided interactive_book.h5p as the package
        Note: make sure that post_max_size and upload_max_filesize in php.ini are set to a something larger than the file's size.
      4. Access the H5P activity to deploy the libraries. Wait until the page is fully loaded.
      5. Login as the student and access the H5P activity
      6. Click on the "Read" button
      7. Answer the two questions from the first page of the book
      8. Click on the "Summary & submit" button at the bottom of the interactive book index (usually in the left part of the content).
        1. Check the "Submit Report" button appears (should be a green button near the "restart" one).
      9. Click on the "Submit Report" button
        1. Check that the button region is replaced by a notice "Your answers are submitted for review!"
      10. Click the activity name in the breadcrumb to go again to the activity start
        1. Check the link "view my attempts" is displayed on top of the content
      11. Click on the "view my attempts" link
        1. Check the attempts report has 1 attempt registered (will appear in both tables) and has some duration and score.

      Test 2: Content bank

      1. Login as admin
      2. Go to the content bank and upload the provided interactive_book.h5p
      3. Open the interactive_book.h5p content
      4. Answer the two questions from the first page of the book
      5. Click on the "Summary & submit" button at the bottom of the interactive book index (usually in the left part of the content).
        1. Check the "Submit Report" does NOT appear near the "restart" button.
      Show
      Test 1: H5P activity Login as admin Create a course and enroll a student it Create an H5P activity using the provided  interactive_book.h5p  as the package Note: make sure that post_max_size and upload_max_filesize in php.ini are set to a something larger than the file's size. Access the H5P activity to deploy the libraries. Wait until the page is fully loaded. Login as the student and access the H5P activity Click on the "Read" button Answer the two questions from the first page of the book Click on the "Summary & submit" button at the bottom of the interactive book index (usually in the left part of the content). Check the "Submit Report" button appears (should be a green button near the "restart" one). Click on the "Submit Report" button Check that the button region is replaced by a notice "Your answers are submitted for review!" Click the activity name in the breadcrumb to go again to the activity start Check the link "view my attempts" is displayed on top of the content Click on the "view my attempts" link Check the attempts report has 1 attempt registered (will appear in both tables) and has some duration and score. Test 2: Content bank Login as admin Go to the content bank and upload the provided  interactive_book.h5p Open the interactive_book.h5p content Answer the two questions from the first page of the book Click on the "Summary & submit" button at the bottom of the interactive book index (usually in the left part of the content). Check the "Submit Report" does NOT appear near the "restart" button.
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull 3.9 Branch:
    • Pull 3.10 Branch:
      MDL-69736-310
    • Pull Master Branch:
      MDL-69736-master
    • Sprint:
      Moppies Kanban

      Description

      When a student is doing an interactive book on a H5P activity, the "submit report" does not appear. This happens because the "H5PIntegration.reportingIsEnabled" is always false even if tracking is enabled.

      This variable is defined in the method get_core_settings of "h5p/classes/helper.php". This variable should be true when tracking is enabled.

        Attachments

        1. interactive_book.h5p
          8.44 MB
          Ferran Recio
        2. MDL-69736.jpg
          44 kB
          Anna Carissa Sadia
        3. Screenshot_20201006_152253.jpeg
          149 kB
          Cláudio Esperança

          Issue Links

            Activity

              People

              Assignee:
              tusefomal Ferran Recio
              Reporter:
              tusefomal Ferran Recio
              Peer reviewer:
              Mihail Geshoski
              Integrator:
              Sara Arjona (@sarjona)
              Tester:
              Anna Carissa Sadia
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              6 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Nov/20

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 50 minutes
                  4h 50m