yeah.. sorting album images doesnt seem to be working on any of my servers. Sorting of albums does work but images are a no go.. they dont even display. Looks like we may have a bug here... Also as a note on my testing.. this was not an album with subalbums that it was faulting on.. it was on just a simple gallery of mine WITHOUT subalbums
if I changed line 118 in admin-functions.php where it said $image->getImageID() to $image->id the images would then show up but it would not save my sort order.
This is probably definitely a bug. I removed that function but forgot to check backreferences, and changed the way sort order and keys were stored but didn't test sorting... it probably really is broken.
Thanks for the great beta testing guys!
So this tells me... I need automated unit testing to keep track of all the test cases!
Once you fix the image ordering which you can do by inserting:
`function getImageID() { return $this->id; }` into the image class in classes.php (svn311)
you will find that, even though image re-ordering sends the correct new order to the db, the new order (manual) is not used when displaying the images in album.php
hope this helps (although it's probably a dirty hack!) *glup*!
Comments
Also as a note on my testing.. this was not an album with subalbums that it was faulting on.. it was on just a simple gallery of mine WITHOUT subalbums
if I changed line 118 in admin-functions.php where it said $image->getImageID() to $image->id the images would then show up but it would not save my sort order.
Thanks for the great beta testing guys!
So this tells me... I need automated unit testing to keep track of all the test cases!
This will be in a bugfix release within the week. Sorry for the inconvenience.
`function getImageID() { return $this->id; }` into the image class in classes.php (svn311)
you will find that, even though image re-ordering sends the correct new order to the db, the new order (manual) is not used when displaying the images in album.php
hope this helps (although it's probably a dirty hack!) *glup*!
The better method is in latest SVN, already fixed. See above. New version will be out soon with the fixes...