Login Form

#271 – No date = auction uses old pictures from folder

Posted in ‘BF Auction’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 08 July 2014 02:48 AEST
Joomla! version: (3.2.3) - BF Auction 1.5.10

Hi Tim,

I entered a new auction and left the end date empty. As the auction was saved it automatically had this end date (30-11--0001 01:00).

On the Auction items list I see the auction and it has pictures that are left in the folder from old auctions from old version that I uninstalled before installing the new latest version of BF Auction.

Somehow this auction gets pictures from old auctions if auction ID is the same as this number in filename: 5img1. So auction 5 has pictures from old #5 auction that was deleted from the database.

Can't you have some code to not allow to save auction with no end date selected?

Also, in the auction list view, after saving it, it keeps showing "Bid Now" button but when I click to bid it shows it as closed as the date already expired.

Tuesday, 08 July 2014 12:25 AEST 10'
BF Quiz Plus 3 Years
Hi Aleksander,
The default date when blank will vary depending on your database, in your case it is 30-11--0001 01:00, but I've also seen 0000-00-00 00:00:00 or 1970-01-01 00:00:00.
You can't have no end date, but you can set a default date that is way in the future, for example 2020-01-01 12:00:00
To do this, you'd need to edit /administrator/components/com_bfauction_plus/models/forms/item.xml, and add a default value to the endDate field. For example:
<field name="endDate" type="calendar"
class="inputbox" size="22" format="%Y-%m-%d %H:%M:%S"
default="2020-01-01 12:00:00"
You would need to make a similar change to /components/com_bfauction_plus/models/forms/item.xml for the front end.

You can remove old images from deleted auction items by clearing out the /images/com_bfauction_plus folder.

The date already expired issue would be due to your database's default date 30-11--0001 01:00, which is obviously in the past.


Follow us on twitter http://twitter.com/tamlynsoftware
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.
Go to top