Rows added to artefact_file_embedded when editing Note not in a page

Bug #1508760 reported by Jono M
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Confirmed
Low
Unassigned

Bug Description

When a Note is removed from all pages it is in, any embedded images in the note have their entries removed from the artefact_file_embedded table (since the note can't be shared they aren't needed). However, if you then edit the note from the Notes area and click Save, the embedded image rows are added back to the table.

More specifically
- Add a Note block to a page, and embed an image in the note (using the TinyMCE image button)
- Confirm that a new "textbox" row has been added to the artefact_file_embedded table
- Remove the block from the page. This should remove the artefact_file_embedded row that you saw previously
- Go to "Notes" and edit that note. Click "Save" without changing anything
- Another new "textbox" row will appear in the artefact_file_embedded table

This row isn't necessary, so it shouldn't be added unless the note is in one or more pages.

Affects latest master

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Confirmed in latest master.

Changed in mahara:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.