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

Required custom profile fields, are not required when a registered user accesses the registration form (solution to disable form for logged in users)

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Enable email based self-registration
      2. Logout, access /login/signup.php and make sure you are able to register
      3. Logout, login as guest and repeat previous step
      4. Being already logged in, type URL "/login/signup.php" and make sure the form is not displayed to you.
      Show
      Enable email based self-registration Logout, access /login/signup.php and make sure you are able to register Logout, login as guest and repeat previous step Being already logged in, type URL "/login/signup.php" and make sure the form is not displayed to you.
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull Master Branch:
      wip-MDL-49003-master

      Description

      Based on MDL-42138.

      Here is a point-by-point overview:
      0. Moodle 2.8.2
      1. E-mail based self-registration is enabled.
      2. There is a custom 'register on the website' link added to the main menu. It points to /login/signup.php
      3. There are a bunch of custom user profile fields added. All are set as required, to display on the signup page and as visible to user.

      Now the scenario:
      1. A user visits the website.
      2. A user logs in/is logged in.
      3. A user goes to the registration form (either from a link somewhere on the website or by manually adding /login/signup.php). A user fills the form while logged.
      4. The required custom fields are not marked as required. The red asterisk is not displayed.
      5. A user is able to proceed with the registration without filling in all the necessary information.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marina Marina Glancy
              Reporter:
              symp Marek Kancelarek
              Peer reviewer:
              Petr Skoda
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Zachary Durber
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Mar/15