Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My husband and I both create invoices using this module, and sometimes need to edit invoices the other has made.
When we edit our own invoice, we can see all the line items. But when we edit each other's, all line items disappear and the invoice looks empty - apart from the address details.
If we view the invoice, we can see the line items no problem.
Looks like a permissions setting, but we're both admins and the permissions on the modules are checked for admins.
Any ideas?
Comment | File | Size | Author |
---|---|---|---|
#4 | fix_invoice_edit_list_perms-1972972-4.patch | 4.69 KB | ssoulless |
Comments
Comment #1
remoraxxx CreditAttribution: remoraxxx commentedI suscribe this issue.
It becomes critical if you invoice via RESTful API, as nobody can edit the invoiced items lines.
Comment #2
remoraxxx CreditAttribution: remoraxxx commentedYou can fix this issue replacing this lines from
invoice_form.inc
file, (around line #817):with these ones:
---------------------------------
In
invoice.module
, replace:with:
-------------------------------------------------
in
invoice.module
replace:
whit:
-------------------------------------
in
invoice_ajax.inc
replace:with :
Note: The user still needs "Administer invoices" perm checked on.
Comment #3
ssoulless CreditAttribution: ssoulless commentedWould be better if someone provide a patch. Then it must be commited. I will do the patch this afternoon.
Comment #4
ssoulless CreditAttribution: ssoulless commentedOk here is a patch that fixes this issue. Please try it on a production site and give some of feedback for see if this issue is solved.
Cheers!