I installed Commerce Discount and Event Log Module together.
When I add a discount, It do not save and only refresh on add form page.
Uninstalling event log make all thing correct!

Comments

mr.hadimollaei created an issue. See original summary.

mr.hadimollaei’s picture

I find that the problem arises when there is a event_log_form_alter function 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_submit function executes, the function commerce_discount_form_submit will no longer execute and the discount won't be saved.

I temporarily add a condition if($form_id !== 'commerce_discount_form') before event_log_add_submit_handler($form, 'event_log_form_submit');

joelpittet’s picture

Project: Commerce Discount » Event log
Version: 7.x-1.0-alpha8 » 7.x-1.x-dev

Sounds like a bug for event_log to deal with.

mr.hadimollaei’s picture

Yes, I agree.
Thanks.