Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged PR 57983: Fix cannot clear preferences or data fields in custo…
…mer account ## What's being changed The Newsletter controller that is hit when customers save their newsletter subscription, preferences, data fields or list memberships from within their customer account. ## Why it's being changed We had some bits of conditional logic in place here dating back 6 years, that prevented the _clearing_ or resetting of preferences and data fields. So it was impossible to unset all preference checkboxes and opt out of everything. In addition any data field values that were cleared would not result in those values being cleared upstream in Dotdigital, and cleared date-type values would actually cause today's date to be set as a replacement. ## How to review / test this change - Configure your options to display customer preferences and data fields - Log in as a customer and check some preferences, save - Try to uncheck all preferences, save > your options should all be unchecked in Dotdigital - For a thorough test of data fields, you want to be displaying in the account one of each type (Numeric, String, Date and Boolean) - Opt out or uncheck or clear all of these data field values, confirming that these are reflected on DD - Make sure in particular that cleared dates are subsequently null in DD Related work items: #269315
- Loading branch information