Actions
Bug #6675
closedPrivacy controls not displaying on registration
Description
Even if enabled on registration the privacy controls are not displaying.
Actions
Added by krileon over 7 years ago. Updated over 6 years ago.
Description
Even if enabled on registration the privacy controls are not displaying.
Partially fixed. Displays now, but doesn't save. User ID is missing for some reason. Needs further investigation. Tab privacy was displaying fine, but has same issue of not saving. Profile Privacy field oddly works fine.
It wasn't saving due to saveTabsContents triggers being used, which during new user create there is no user id yet as the CMS user hasn't stored. It needs to use the commitTabsContents trigger as at that point the user is stored. Tab privacy save needs to behave similarly with savePluginTabs and saveRegistrationPluginTabs most likely.
Had to rewrite how tabs and fields save their privacy as there wasn't a reliable tab or field specific trigger to use. It instead just saves on the final registration or profile update triggers.