Originally reported by eshta:

Steps to Reproduce

  • Save the campaign settings form (which will refresh the toggle form).
  • Toggle the status.

Notes

  • Previously submitting the campaign settings information form (which rebuilds the toggle form) caused a small ajax error. The error was caused by the fact that both forms end up with the same ID values applied to the submit button. As a result, the toggle form ends up with an array of action URLs rather than a string and the javascript that acts on those URLs fails because it assumes that they are strings.
  • In order to prevent this, I renamed the submit button parents from ['actions']['submit_form'] to ['actions']['toggle_form']. This fixed the above issue but created the new one.
  • Also note that simply submitting the toggle form repeatedly works fine.

Comments

katbailey’s picture

Issue summary: View changes
eshta’s picture

Assigned: Unassigned » eshta
eshta’s picture

Status: Active » Needs review

I'm no longer able to reproduce this problem in the 7.x-1.x line.

eshta’s picture

Assigned: eshta » Unassigned
katbailey’s picture

Status: Needs review » Closed (cannot reproduce)

If someone does manage to reproduce this they can re-open or create a new issue...