My favorites
▼
|
Sign in
substruct
Open-source Ruby on Rails E-Commerce
Project Home
Downloads
Wiki
Issues
Source
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
174
attachment: download-variations.diff
(996 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: vendor/plugins/substruct/app/models/order.rb
===================================================================
--- vendor/plugins/substruct/app/models/order.rb (revision 295)
+++ vendor/plugins/substruct/app/models/order.rb (revision 296)
@@ -25,6 +25,8 @@
AND user_uploads.id IN (
SELECT download_id FROM product_downloads
WHERE product_downloads.product_id IN (
+ SELECT product_id from items where id in (SELECT item_id FROM order_line_items where order_id = #{id})
+ UNION
SELECT item_id FROM order_line_items
WHERE order_id = #{id}
)
@@ -36,6 +38,8 @@
AND user_uploads.id IN (
SELECT download_id FROM product_downloads
WHERE product_downloads.product_id IN (
+ SELECT product_id from items where id in (SELECT item_id FROM order_line_items where order_id = #{id})
+ UNION
SELECT item_id FROM order_line_items
WHERE order_id = #{id}
)
Powered by
Google Project Hosting