// littlefix on ProductDownload

This commit is contained in:
rMalie committed 2011-12-15 15:18:08 +00:00
1 parent bc016d0605
commit 2876fbe625
1 file changed
+4 -3
+4 -3
View File
@@ -96,10 +96,11 @@ class ProductDownloadCore extends ObjectModel
*/ */
public function getFields() public function getFields()
{ {
if (!$this->date_expiration) $fields = parent::getFields();
$this->date_expiration = '0000-00-00 00:00:00'; 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) public function add($autodate = true, $nullValues = false)