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

Password submision in Workshop module

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.9.2, 1.9.3
    • 1.9.5
    • Workshop
    • None
    • Environment should not be important. However it was found on Debian Linux.
    • Any
    • MOODLE_19_STABLE
    • 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

              mudrd8mz David Mudrák (@mudrd8mz)
              incognito Robert Ravnik
              Sam Hemelryk Sam Hemelryk
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Raquel Ortega, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/May/09