Classifieds Package length set as permanent, but all products still expire!

Affected version
1.2.0

benFF

Member
Every Sunday without fail, all the classifed items change their status to "expired" and are removed from view!

In the package, the length is set as "Permanent" and viewing the database records directly "expiration_date" is set as 0.

Yet still it keeps happening :(
 
This is due to the function expireListingsPastExpiration.

In its selection query:

Code:
        $listings = $this->finder('Z61\Classifieds:Listing')
                    ->with('Category')
                    ->where('expiration_date', '<', $cutOff)
                    ->where('listing_open', 1)->fetch();

There also needs to be a "where expiration_date > 0".
 
Back
Top