Deleting Media items from inside the layout timeline editor does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Xibo |
Fix Released
|
Low
|
Dan Garner |
Bug Description
Deleting Media items from inside the layout timeline editor does not work. Unassigning fine.
Steps to reproduce.
* Create new layout.
* Add Region
* Double-click new region
* Add Image (upload a new file)
* Back on the timeline view, click "Delete"
* Choose "Delete this media" from the options
* Click "Yes".
Error message displayed "Database error deleting this media record".
From the log:
<errormsg>The query [DELETE FROM media WHERE mediaid = 6 ] failed to execute<br />MySQL error: Cannot delete or update a parent row: a foreign key constraint fails (`xibo_
<errornum>
<errortype>User Notice</errortype>
<scriptname>
<scriptlinenum>
-------
If I choose "Unassign from this region only" -> Yes, then visit the library and delete the item there, it works fine.
Related branches
- Dan Garner: Approve
- Diff: None lines
Changed in xibo: | |
importance: | Undecided → Low |
Changed in xibo: | |
status: | Confirmed → Fix Committed |
Changed in xibo: | |
status: | Fix Committed → Fix Released |
OK - I can recreate this.
Seems to be ignoring / missing a call to unassign the media before deleting. I will check this out.