[-] CORE : fixed bug #PSCFV-10175 - No virtuel download email send after accepted payment

This commit is contained in:
Vincent Augagneur
2013-08-27 10:09:35 +02:00
parent de200e1c5e
commit 99b162d16b

View File

@@ -126,7 +126,7 @@ class OrderHistoryCore extends ObjectModel
.'&secure_key='.$order->secure_key;
$assign[$key]['link'] = $dl_link;
if (isset($virtual_product['download_deadline']) && $virtual_product['download_deadline'] != '0000-00-00 00:00:00')
$assign[$key]['deadline'] = Tools::displayDate($virtual_product['download_deadline ']);
$assign[$key]['deadline'] = Tools::displayDate($virtual_product['download_deadline']);
if ($product_download->nb_downloadable != 0)
$assign[$key]['downloadable'] = (int)$product_download->nb_downloadable;
}
@@ -485,4 +485,4 @@ class OrderHistoryCore extends ObjectModel
else
return $this->add();
}
}
}