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

Course Custom field textarea cant be emptied

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Please, test with Atto HTML editor, TinyMCE HTML editor and Plain text area editors.

      1. Login as admin
      2. Navigate to Courses > Course custom fields in site administration
      3. If no category currently exists, press Add a new category
      4. Press Add a new custom field > Text area
      5. Give it a name & shortname and press Save changes
      6. Navigate to Courses > Add a new course in site administration
      7. Fill in fullname & shortname fields
      8. Expand Other fields fieldset
      9. Enter "TEST" in your custom field
      10. Press Save and display
      11. Press Proceed to course content
      12. From the Actions menu select Edit settings
      13. Delete the content of the custom field
      14. Press Save and display
      15. From the Actions menu select Edit settings
      16. Confirm the content of the custom field was deleted
      Show
      Please, test with Atto HTML editor , TinyMCE HTML editor and Plain text area editors. Login as admin Navigate to Courses > Course custom fields in site administration If no category currently exists, press Add a new category Press Add a new custom field > Text area Give it a name & shortname and press Save changes Navigate to Courses > Add a new course in site administration Fill in fullname & shortname fields Expand Other fields fieldset Enter "TEST" in your custom field Press Save and display Press Proceed to course content From the Actions menu select Edit settings Delete the content of the custom field Press Save and display From the Actions menu select Edit settings Confirm the content of the custom field was deleted
    • Affected Branches:
      MOODLE_38_STABLE, MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE, MOODLE_39_STABLE
    • Pull 3.8 Branch:
    • Pull 3.9 Branch:
    • Pull Master Branch:

      Description

      If i make a custom course field of the type textarea, and in the course settings write TEST. The text test is displayed. If i the go to course settings again and clear the field - delete the text - and save course settings, it still says TEST. If i open course settings agin, the text TEST is in the custom field again. 

      I cant delete text from af custom courst textarea field if it has been saved with text once. 

      The Moodle is 3.8.1

      In Moodle 3.9 onwards it does not happen using Atto, but it does using the plain editor. Doing some research, it may be that MDL-45227 introduces some default attributes even when no text is entered.

        Attachments

          Activity

            People

            Assignee:
            pholden Paul Holden
            Reporter:
            hsp.praxis Henrik Sune Pedersen
            Peer reviewer:
            Dmitrii Metelkin
            Integrator:
            Víctor Déniz Falcón
            Tester:
            Anna Carissa Sadia
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/Sep/20

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 10 minutes
                3h 10m