MantisBT - Piwigo
View Issue Details
0002345Piwigoweb APIpublic2011.06.14 15:502011.06.14 15:54
plg 
plg 
normalminorN/A
closedfixed 
2.2.3 
2.2.42.2.4 
any
Apache 1.3.x
0002345: ability to update the rank of a photo for an existing album
If the photo doesn't already belong to the album, then pwg.images.setInfo is fine, just send categories=677,12 and your photo will have rank 12 in album 677. But this doesn't update the rank if the photo already belongs to this album.

To avoid any regression, I prefer to add a new dedicated method pwg.images.setRank which cleanly takes 3 arguments: image_id, category_id, rank.
No tags attached.
Issue History
2011.06.14 15:50plgNew Issue
2011.06.14 15:50plgStatusnew => assigned
2011.06.14 15:50plgAssigned To => plg
2011.06.14 15:50plgbrowser => any
2011.06.14 15:50plgWeb server => Apache 1.3.x
2011.06.14 15:52plgSeverityfeature => minor
2011.06.14 15:53svnCheckin
2011.06.14 15:53svnNote Added: 0005236
2011.06.14 15:54svnCheckin
2011.06.14 15:54svnNote Added: 0005237
2011.06.14 15:54plgStatusassigned => closed
2011.06.14 15:54plgResolutionopen => fixed
2011.06.14 15:54plgFixed in Version => 2.2.4

Notes
(0005236)
svn   
2011.06.14 15:53   
[Subversion] r11371 by plg on branch 2.2

-----[Subversion commit log]----------------------------------------------------
bug 2345 fixed: ability to update the rank of a photo for an existing
category. I haven't modified pwg.images.setInfo, I've just added a new
method pwg.images.setRank which does this very specific job.
(0005237)
svn   
2011.06.14 15:54   
[Subversion] r11372 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
merge r11371 from branch 2.2 to trunk

bug 2345 fixed: ability to update the rank of a photo for an existing
category. I haven't modified pwg.images.setInfo, I've just added a new
method pwg.images.setRank which does this very specific job.