PDA

View Full Version : virtual exhibition bug (VERIFIED)


deblur
28th of December 2006 (Thu), 12:53
There is a problem with trying to upload photos when a virtual exhibition was selected previously in the photo editor etc.

If you don't first select a real exhibition in the Upload to database, it tries to upload them to the virtual exhibition, and gives errors. The photo is uploaded but not assigned to any exhibition and the thumbnails aren't generated. The photo then sometimes seems to appear in the photo editor, under the virtual exhibition, and other times won't show up. In the former case I can remove it via Copy/move/delete, otherwise it is not possible to delete the photo.

In the later case (or if I remove the photo from the virtual exhibition), I can still see the photo is in the database if I go to the photo breakdown report. There are 'rows missing' and the photo shows as not being used in any exhibition. I can't delete these photos now.

Pekka
28th of December 2006 (Thu), 15:38
A good report, thanks.

I have to debug it, but I suspect the upload page dropdown shows the first in list but the exhibition id is actually the virtual exhibition's id (after you've edited one in exhibition editor and moved to another editor). And then you have the symptoms you describe. I have to make the dropdown show "select exhibition first" in case id does not match the available real exhibitions, and to prevent upload to go on if exhibition is not "real". This bug affects some other editors, too, and I must prevent similar problems there.

The actual exhibition affected is always on top of the editor: "CURRENT EXHIBITION:".

I'll post as soon as a fix is done.