Active
Project:
Event log
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Jun 2017 at 22:00 UTC
Updated:
21 Jun 2017 at 06:00 UTC
Jump to comment: Most recent
Comments
Comment #2
mr.hadimollaei commentedI find that the problem arises when there is a
event_log_form_alterfunction in the event_log.module file that adds a submit function to all forms with:event_log_add_submit_handler ($form, 'event_log_form_submit')command.Only in the Commerce Discount Form When the
event_log_form_submitfunction executes, the functioncommerce_discount_form_submitwill no longer execute and the discount won't be saved.I temporarily add a condition
if($form_id !== 'commerce_discount_form')beforeevent_log_add_submit_handler($form, 'event_log_form_submit');Comment #3
joelpittetSounds like a bug for event_log to deal with.
Comment #4
mr.hadimollaei commentedYes, I agree.
Thanks.