Image management - remove on auction delete

A place to discuss and receive support for the Web Auction application.

Image management - remove on auction delete

Postby bobede » Fri May 23, 2008 7:19 am

Is here a way the the product_image can be deleted at the same time the auction is deleted?
bobede
 
Posts: 24
Joined: Tue Oct 30, 2007 7:01 am

Postby shannah » Fri May 23, 2008 10:01 am

I have added this as a feature request in the issue tracker:
http://bugs.weblite.ca/view.php?id=176

I have also posted a patch file that implements this feature as part of the bug report. You can apply this patch yourself, or wait for the next release that will include the patch.

Best regards

Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby bobede » Fri May 23, 2008 6:22 pm

Thanks Steve!

I'll need to work with it a bit, as I've added extra product images, but I'm sure I'll get it.

Bob
bobede
 
Posts: 24
Joined: Tue Oct 30, 2007 7:01 am

Postby bobede » Fri May 30, 2008 6:01 am

That worked perfectly. I was able to expand on the new function so that it would also delete any additional images. I simply duplicated your code 3 extra times and made sure the references to the fields in the products table were changed. I also changed the variable names, although I'm not sure if that was really necessary.

Thanks again.
bobede
 
Posts: 24
Joined: Tue Oct 30, 2007 7:01 am


Return to Web Auction Discussion

Who is online

Users browsing this forum: No registered users and 20 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved