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

Unable to delete database activity entry attachment

    Details

    • Database:
      MySQL
    • Testing Instructions:
      Hide

      Test steps

      1. Create a database activity.
      2. Add two fields - File and Picture.
      3. Save the templates and add an entry.
        • Try dragging and dropping a file into the load area (should be marked with a large blue arrow).
        • Do the same with the picture.
      4. Click on view list and then click on the edit icon to edit your entry.
        • Check that you can delete the file and the picture (click on the image of the file and then select delete).
      5. Try adding files with out drag and drop (There should be an icon with a page with a plus sign on it).
        • Save the entry and check that the file is uploaded.
      6. Turn off JavaScript and delete and add files and pictures.
        • Check that no errors or problems occur.
      Show
      Test steps Create a database activity. Add two fields - File and Picture. Save the templates and add an entry. Try dragging and dropping a file into the load area (should be marked with a large blue arrow). Do the same with the picture. Click on view list and then click on the edit icon to edit your entry. Check that you can delete the file and the picture (click on the image of the file and then select delete). Try adding files with out drag and drop (There should be an icon with a page with a plus sign on it). Save the entry and check that the file is uploaded. Turn off JavaScript and delete and add files and pictures. Check that no errors or problems occur.
    • Affected Branches:
      MOODLE_16_STABLE, MOODLE_20_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-7660-master

      Description

      If you upload a file in a database entry and then wish to delete that file there is no way to do so in the UI.

      If you delete the file from the backend (i.e. going into the course files area or via ftp etc.) the link remains and an error is thrown (just stating the obvious i.e. can't find file).

      You can get rid of the link (as long as you only enter a space in the the link optional file name field), and therefore, the error message, but can not get rid of the file icon.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  16 Vote for this issue
                  Watchers:
                  20 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    14/May/13