MantisBT - Piwigo
View Issue Details
0001396Piwigophotospublic2010.01.23 23:262010.01.23 23:57
plg 
plg 
normalminoralways
closedfixed 
2.0.0 
2.0.82.0.8 
any
Apache 1.3.x
0001396: photo deletion doesn't remove category representative orphans
When you delete a photo, if it was used a category representative in a category the photo was not associate to, the representative remains the deleted photo. This produces a warning on gallery side when trying to display the category representative.

The current workaround is to perform an "Update categories informations" in Administration>Specials>Maintenance, but it should be done in delete_elements also.
No tags attached.
Issue History
2010.01.23 23:26plgNew Issue
2010.01.23 23:26plgStatusnew => assigned
2010.01.23 23:26plgAssigned To => plg
2010.01.23 23:26plgbrowser => any
2010.01.23 23:26plgWeb server => Apache 1.3.x
2010.01.23 23:56svnCheckin
2010.01.23 23:56svnNote Added: 0003343
2010.01.23 23:56plgDescription Updated
2010.01.23 23:57svnCheckin
2010.01.23 23:57svnNote Added: 0003344
2010.01.23 23:57plgStatusassigned => closed
2010.01.23 23:57plgResolutionopen => fixed
2010.01.23 23:57plgFixed in Version => 2.0.8

Notes
(0003343)
svn   
2010.01.23 23:56   
[Subversion] r4730 by plg on branch 2.0

-----[Subversion commit log]----------------------------------------------------
bug 1396: when a photo was deleted, the code to avoid orphans as category
representative was 1) wrong (because a photo doesn't have to belong to a
category to represent it) 2) at the wrong place.
(0003344)
svn   
2010.01.23 23:57   
[Subversion] r4731 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
merge r4730 from branch 2.0 to trunk

bug 1396: when a photo was deleted, the code to avoid orphans as category
representative was 1) wrong (because a photo doesn't have to belong to a
category to represent it) 2) at the wrong place.