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

Warning on course custom text field using password

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.7
    • Fix Version/s: 3.7
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide
      1.  Go to 'Site administration > Course custom fields' 
      2. Click on 'Add a new custom field'
      3. Select type 'Text field'
      4. Set Name to 'testfield'
      5. Set Short name to 'test'
      6. Set Password field to 'Yes'
      7. Press 'Save changes'
      8. Message saying 'Notice: Undefined index: link in /stable_master/moodle/customfield/field/text/classes/field_controller.php on line 108' should not appear anymore.
      9. Then click on the edit cog of the testfield custom field
      10. Set Password field to 'No'
      11. Press ‘Save changes’ and make sure the warning does not appear
      12. Go into ‘Edit course settings’ of any existing course
      13. Check that the custom field ‘testfield’ appears under the category ‘Other fields’
      14. Set testfield field to ‘custom fields rocks’
      15. Press Save and display
      16. Go again into ‘Edit course settings’ of the same course and make sure the field 'testfield' is set to  ‘custom fields rocks’

       

       

      Show
       Go to 'Site administration > Course custom fields'  Click on 'Add a new custom field' Select type 'Text field' Set Name to 'testfield' Set Short name to 'test' Set Password field to 'Yes' Press 'Save changes' Message saying 'Notice: Undefined index: link in /stable_master/moodle/customfield/field/text/classes/field_controller.php on line 108' should not appear anymore . Then click on the edit cog of the testfield custom field Set Password field to 'No' Press ‘Save changes’ and make sure the warning does not appear Go into ‘Edit course settings’ of any existing course Check that the custom field ‘testfield’ appears under the category ‘Other fields’ Set testfield field to ‘custom fields rocks’ Press Save and display Go again into ‘Edit course settings’ of the same course and make sure the field 'testfield' is set to  ‘custom fields rocks’    
    • Affected Branches:
      MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-65412-master

      Description

      I found a little issue when adding a text custom field, with password param set to true.

      When adding it. It shows the following warning:
      Notice: Undefined index: link in /stable_master/moodle/customfield/field/text/classes/field_controller.php on line 108

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                20/May/19

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 15 minutes
                1h 15m