Closed (fixed)
Project:
Commerce Invoice Receipt
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2012 at 18:08 UTC
Updated:
29 Dec 2012 at 17:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
les limThere appears to be a collision with the defined name of the Rules action in the
hook_rules_action_info()implementation. Defined actions look for a configuration form with a function name ofACTIONNAME_form(), so the action "commerce_invoice_receipt_mail" is erroneously trying to use the form functioncommerce_invoice_receipt_mail_form(), which does something else entirely.More careful namespacing of actions should fix this. Patch attached.
Comment #2
les limChanging status.
Comment #3
nasheet commentedThis patch works for me. Thank you.
Comment #4
brianlp commentedThis doesn't work for me. If I apply the patch, I get "Unknown action commerce_invoice_receipt_mail".
If I try to enter the action "send invoice receipt mail", the page doesn't load but displays this message:
Notice: Undefined property: RulesReactionRule::$order_id in commerce_invoice_receipt_mail_form() (Line 13 ... /commerce_invoice_receipt.admin.inc).
Notice: Undefined property: RulesReactionRule::$mail in commerce_invoice_receipt_mail_form() (Line 19 ... /commerce_invoice_receipt.admin.inc).
Comment #5
les lim@papalapapp: try flushing your caches, then delete the action from the rule entirely and re-add the action back in.
Comment #6
les limaccidental triple post.
Comment #7
les limaccidental triple post.
Comment #8
brianlp commentedTripple post? o.O Too much coffee?
Re-adding the action did it. Thanks!
Comment #9
Jorrit commentedMy recommendation is to change the form id of the form "commerce_invoice_receipt_mail_form" instead of changing the id of the rule, because in that way, the rulesets still work. I think less people care that the form id has changed as opposed to the number of people that are influenced when the rule id is changed.
[edit]
I changed the name of the form to
commerce_invoice_receipt_mail_admin_formand that works fine.Comment #10
brephraim commentedPatch didn't work, but #9 worked for me.
Comment #11
brephraim commentedTo clarify, I manually applied the change recommended in #9, after applying the patch. So possibly both were necessary, don't know...
Comment #12
dagleesApplied patch and fixed form name.
Comment #13
dagleesComment #14
dagleesFix status