Skip to content

fix: Ensure newsletter-signup method is invoked with the correct keys when...

stephen requested to merge call-newsletter-signup-correctly-from-validation into main

fix: Ensure newsletter-signup method is invoked with the correct keys when called from donation form

An earlier MR (!82 (merged)) addressed the issue of the standalone newsletter signup form passing an object with the wrong keys to the CiviCRM repository newsletter signup handler method. (See: civicrm.views.SubscriptionView)

However, it seems the other invocation of that handler method, which occurs in tordonate.views.ajax_validate when the form has passed validation, was (when the "subscribe me to newsletter" checkbox was checked) still using the old, non-normalized keys.

This MR addresses this oversight by correcting the keys in question.

Merge request reports

Loading