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

Content bank allows empty names

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. As an admin go to Content bank
      2. Create a content uploading an .h5p file
      3. Open the cog menu in content view page
      4. Select 'Rename' option
      5. Remove the 'Content name' field and leave it empty
      6. Click on 'Rename' button
      7. Confirm there is an 'Empty name is not allowed' error
      8. Click on 'OK' button
      9. Click on 'Close' button
      10. Confirm the name of the content did not change
      11. Click in the content to access view page
      12. Open the cog menu in content view page
      13. Select 'Rename' option
      14. Remove the 'Content name' field and write a couple of blank spaces
      15. Click on 'Rename' button
      16. Confirm there is an 'Empty name is not allowed' error
      17. Click on 'OK' button
      18. Change the 'Content name' field and write something. Do not leave it empty or full of blanks only.
      19. Click on 'Rename' button
      20. Confirm there is an 'The content has been renamed' message
      21. Confirm the new name is in the breadcrumbs
      22. Click on 'Close' button
      23. Confirm the content name has changed

       

      Show
      As an admin go to Content bank Create a content uploading an .h5p file Open the cog menu in content view page Select 'Rename' option Remove the 'Content name' field and leave it empty Click on 'Rename' button Confirm there is an 'Empty name is not allowed' error Click on 'OK' button Click on 'Close' button Confirm the name of the content did not change Click in the content to access view page Open the cog menu in content view page Select 'Rename' option Remove the 'Content name' field and write a couple of blank spaces Click on 'Rename' button Confirm there is an 'Empty name is not allowed' error Click on 'OK' button Change the 'Content name' field and write something. Do not leave it empty or full of blanks only. Click on 'Rename' button Confirm there is an 'The content has been renamed' message Confirm the new name is in the breadcrumbs Click on 'Close' button Confirm the content name has changed  
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull from Repository:
    • Pull 3.9 Branch:
    • Pull Master Branch:
      MDL-69089-master
    • Sprint:
      Moppies Kanban

      Description

      When creating or renaming a content in the content bank you can add only blanks and get a content with 'empty' name. 

      Steps to reproduce:

      1. Upload an .h5p file to the content bank.
      2. Rename the content and write only blanks in the name. 
      3. The content has been renamed and the name looks empty.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              amaia Amaia Anabitarte
              Reporter:
              amaia Amaia Anabitarte
              Peer reviewer:
              Ferran Recio
              Integrator:
              Andrew Nicols
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

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

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 26 minutes
                  2d 26m