Image data table broken when adding images...
Posted: 19 Jan 2010, 23:31
When adding an image under certain conditions, the table appears to go wrong. This shows itself by having a "next" arrow that leads to a "no image" ("Hacking attempt")
The conditions for this is:
1. The image is not added last - so we replace an existing image.
2. The OLD image of that position is placed in a position not the last image.
My theory is that there are TWO images with the same ID.
In the S. camelopardalis:
http://www.planetcatfish.com/catelog/sp ... ies_id=225
You can actually see that it's got TWO identical images, both with the number 2.
This causes the image with number 5 to be in position 6, and the script thinks there is another image, but we're already at the end of the list.
[Not saying "I told you so", but I think this is what I tried saying when I was code-reviewing for the "uber-bug"].
--
Mats
The conditions for this is:
1. The image is not added last - so we replace an existing image.
2. The OLD image of that position is placed in a position not the last image.
My theory is that there are TWO images with the same ID.
In the S. camelopardalis:
http://www.planetcatfish.com/catelog/sp ... ies_id=225
You can actually see that it's got TWO identical images, both with the number 2.
This causes the image with number 5 to be in position 6, and the script thinks there is another image, but we're already at the end of the list.
[Not saying "I told you so", but I think this is what I tried saying when I was code-reviewing for the "uber-bug"].
--
Mats