[ansel] Feature Request

Heath S. Hendrickson heath at outerspaceconsultants.com
Mon Jan 19 08:51:33 PST 2004


The Empty Gallery works, but there's a potential for an obscure bug.

I just converted my VFS using the convert.php script.  I then added (via 
XP publish) images to an existing sub-gallery (106 original + 6 new, 
roughly).  The gallery displayed fine.  Then I went into Modify Gallery 
and emptied it.  That worked out fine as well.  The problem was my 
num_images attribute in the database was now -106.  Might be worth a 
quick modification to set num_images = 0 when it's being emptied instead 
of just strictly decrementing the counter.

Yes, it's very obscure...

Adding

    $gallery->set('num_images',0,true);

to gallery.php should do the trick, right?  Granted, it shouldn't be 
necessary, but in case the counter gets off somehow this will make sure 
to clear it out.

heath


Ben Chavet wrote:

>Try what I just commited.  It's on the 'modify gallery' screen.
>
>--Ben
>
>  
>



More information about the ansel mailing list