Closed (fixed)
Project:
Commerce Billy Mail [D7]
Version:
7.x-1.0-beta5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 May 2016 at 09:55 UTC
Updated:
12 Jun 2017 at 14:19 UTC
Jump to comment: Most recent
Comments
Comment #2
thibaut51 commentedComment #3
thibaut51 commentedfirst problem can be resolved by patching the commerce_billy_mail.module file
Just add this line
$order = commerce_order_load($order->order_id); // patch for cron sendingat the begining of function _commerce_billy_mail_get_attachments($order) arround line 202 in the 7.x-1.0-beta5
second problem can be solved by editing the 'commerce_line_item_table' view
* got to [site_url]/admin/structure/views/view/commerce_line_item_table/edit
* in 'Advanced>Query settings' check 'Disable SQL rewriting' (don't care about the warning)
* save the view
First problem is Commer_billy_mail dependent so it may be usefulle to add it in the module although second one is not.
Second problem is due to the fact that cron is run as anonymous and anonymous user can't access to all orders of any type.
That's it
Comment #4
thibaut51 commentedComment #5
anybodyI added
in line 68 of the latest dev version to ensure the order is loaded. This should fix your problems, feedback is very welcome!
Comment #6
anybody