Public bug reported:

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

** Affects: mahara
     Importance: Low
         Status: New

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1508760

Title:
  Rows added to artefact_file_embedded when editing Note not in a page

Status in Mahara:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1508760/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to