Closed (fixed)
Project:
Commerce Invoice
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2011 at 13:35 UTC
Updated:
4 Feb 2012 at 00:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
guillaumev commentedThanks for the bug report. It should now be fixed, but you might need to clear the caches after updating to the new code and review the permissions for the invoices.
Feel free to reopen this issue if you still have issues...
Comment #3
itamair commentedActually I checked if this issue was fixed ... and I got some strange behavior. Seems not to work for me.
I use a view that would show the invoice associated to the order, for the present user, in the form of: /commerce/invoice/[#numberofinvoice]
Actually I just personalized the view that is shipped with the invoice module ...
I attach the code of the view. It works well for the administrator ... but not for the authenticated user for which a SQL error is thrown (I attach it here too), and the result view page is simply white ... (no content of the invoice view shown).
I underline that the access to this invoice view is granted to the authenticated user too, that holds also the following permissions (besides others less specific to commerce module):
View own customer profiles of any type
View own Billing information customer profiles
View own invoices
View own orders of any type
View own Order orders
The view seems to work for the authenticated user just when I delete from it any relationship linking invoice and the corresponding order ... but thus resulting in an absolutely useless view ...
What does that debug/error message means? ... and what would be the possible solution?
Is it just my fault, or something still wrong in the module behavior ?
Thanks for any help ...
Comment #4
guillaumev commentedHi,
Can you make sure that you have the latest dev version installed and that you made all the necessary database updates using update.php ?
Comment #5
pomliane commentedHi,
On an up-to-date install, /admin/commerce/orders/*/invoice pages are still visible by any user (even anonymous) with both dev and 1.0-alpha1 versions.
Is there something I'm missing?
Comment #6
pomliane commentedComment #7
guillaumev commentedOk so there was in fact some code that I had written which I had forgotten to commit, so I was missing something :-)
Anyway I just committed it, retested it and it should now work... (http://drupalcode.org/project/commerce_invoice.git/commit/c212893). Please let me know if everything works for you...
Comment #8
pomliane commentedIt does work here now and I bet RTBC is not too optimistic, thank you! :)
Comment #9
guillaumev commentedThank you, marking this as fixed...
Comment #10
itamair commentedThanks! I checked ... and so far so good. It works ... it seems ;-)