From b7abb129c8006c5e5e36c5c9acaecc0cb4ce271b Mon Sep 17 00:00:00 2001 From: rMalie Date: Thu, 15 Dec 2011 15:18:08 +0000 Subject: [PATCH] // littlefix on ProductDownload git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11269 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/ProductDownload.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/classes/ProductDownload.php b/classes/ProductDownload.php index ec438274e..76c751e5b 100644 --- a/classes/ProductDownload.php +++ b/classes/ProductDownload.php @@ -96,10 +96,11 @@ class ProductDownloadCore extends ObjectModel */ public function getFields() { - if (!$this->date_expiration) - $this->date_expiration = '0000-00-00 00:00:00'; + $fields = parent::getFields(); + if (!$fields['date_expiration']) + $fields['date_expiration'] = '0000-00-00 00:00:00'; - return parent::getFields(); + return $fields; } public function add($autodate = true, $nullValues = false)