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

Default value ignored in user profile field (Text input) on signup page

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Steps to reproduce

      1. Create a 'Text input' user profile field. (/user/profile/index.php)
      2. Set 'Display on signup page?' to 'Yes'.
      3. Give the 'Default value' element some text.
      4. Hit 'Save changes'
      5. Logout and navigate to the user signup page (/login/signup.php)

      Expected result
      The created text input element to contain the configured default value.

      Show
      Steps to reproduce Create a 'Text input' user profile field. (/user/profile/index.php) Set 'Display on signup page?' to 'Yes'. Give the 'Default value' element some text. Hit 'Save changes' Logout and navigate to the user signup page (/login/signup.php) Expected result The created text input element to contain the configured default value.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-56323-master

      Description

      When you create a text input user profile field and expose it to the user signup form the default value configured is not rendered.

      Steps to reproduce

      1. Create a 'Text input' user profile field. (/user/profile/index.php)
      2. Set 'Display on signup page?' to 'Yes'.
      3. Give the 'Default value' element some text.
      4. Hit 'Save changes'
      5. Logout and navigate to the user signup page (/login/signup.php)

      Expected result
      The created text input element to contain the configured default value.

      Actual result
      The created text input element is empty.

        Attachments

          Activity

            People

            Assignee:
            leec Lee Campbell
            Reporter:
            leec Lee Campbell
            Peer reviewer:
            Ankit Agarwal
            Integrator:
            David Monllaó
            Tester:
            Rajesh Taneja
            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:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/Nov/16