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

Password submision in Workshop module

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.9.2, 1.9.3
    • Fix Version/s: 1.9.5
    • Component/s: Workshop
    • Labels:
      None
    • Environment:
      Environment should not be important. However it was found on Debian Linux.
    • Database:
      Any
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Reproducing the bug:

      Tested in browsers: Opera 9.6 and FF3 (not tested in IE)

      STEPS TO REPRODUCE THE PROBLEM:

      1. As Teacher create new workshop activitiy
      2. Set password for it and enable password
      3. Login as Student and try to access this workshop
      4. Password box appears. We type in the password.
      5. CLICK (do not submit data pressing enter key, click!) on 'Continue' button.

      WHAT WAS EXPECTED:
      6.1 Form is submited.

      WHAT ACTUALLY HAPPENS:
      6.2 Nothing happens. Browser does not submit form. It generates JavaScript error.

      PROPOSED SOLUTION:
      After reviewing the code I realized that the 'Continue' button has onclick event:

      <input type="button" value="Continue" onclick="document.password.submit();" />

      that should submit form named 'password'. This does not happen since form is defiend only with id tag:

      <form id="password" method="post" action="view.php">

      Proposed and working solution to a problem would be to add 'name' attribute to this form:

      <form id="password" name="password" method="post" action="view.php">

      This solution works in both browsers listed above.

      Greetings to all moodlers,
      Robert Ravnik

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mudrd8mz David Mudrák (@mudrd8mz)
              Reporter:
              incognito Robert Ravnik
              Tester:
              Sam Hemelryk
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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