campaignmonitor_general_form() passes on the global $user object onto _campaignmonitor_is_subscribed(). However, if you're editing a user as admin, it'll always use your details to populate that checkbox and not the users.
campaignmonitor_general_form() passes on the global $user object onto _campaignmonitor_is_subscribed(). However, if you're editing a user as admin, it'll always use your details to populate that checkbox and not the users.
Comments
Comment #1
ssherriff commentedThis has now been fixed and the next release will include the fix.
Comment #3
djschoone commentedi checked the code for the fix, but i am unable to find it.
is incorrect
Now looking for the mailadress for the current requested user page (e.g. user/1023/newsletters)
Comment #4
djschoone commentedtrying to quick fix... getting closer
it now passes the first argument (the %user) as an argument. Checking if subscribed works, now we need to change campaignmonitor_user_form_submit() to use also the %user argument or the previously set $form-values