From 9eda5d4cdc7ac049ff92baf4eebcafb2aa4eb1ef Mon Sep 17 00:00:00 2001 From: lBrieu Date: Wed, 5 Oct 2011 13:57:02 +0000 Subject: [PATCH] [*] FO : get the product attribute id for download link git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9059 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Order.php b/classes/Order.php index 7557b0d7a..9b6a49ffe 100644 --- a/classes/Order.php +++ b/classes/Order.php @@ -526,7 +526,7 @@ class OrderCore extends ObjectModel public function getVirtualProducts() { $sql = ' - SELECT `product_id`, `download_hash`, `download_deadline` + SELECT `product_id`, `product_attribute_id`, `download_hash`, `download_deadline` FROM `'._DB_PREFIX_.'order_detail` od WHERE od.`id_order` = '.(int)($this->id).' AND `download_hash` <> \'\'';