When updating from 7.x-3.1 to 3.11, the subscription form I have visible in a block on the front page now adds a checkbox item with the mailing list name (defaults to unchecked). There is only one list for the form, and only one form on the entire site (a newsletter opt-in). This is confusing for users, so I reverted the update.
While I agree any single form should be able to specify the lists they are associated with in the case of multiple lists, but if it is only one item, then it should suppress display of that control, because it is meaningless. It's not the (naive) user's responsibility to specify which list, that's the point of specifying it in the signup form (admin/config/services/mailchimp/signup).
I'm marking this major, since the control defaults to unchecked, and I am assuming will not properly associate the user input (email) to the list subscription service if it remains that way.
Comment | File | Size | Author |
---|---|---|---|
#8 | mailchimp-singlelist-2368307-8.patch | 546 bytes | jacktonkin |
Comments
Comment #1
francismacomber CreditAttribution: francismacomber commentedHere's a quick fix I'm using to make the single checkbox selected by default and hidden via css class "element-hidden" when there's only one list for the form.
Comment #2
dantodd CreditAttribution: dantodd commentedUnfortunately, this patch doesn't work for me.
I get this error:
And this rejection report:
Any support or feedback would be most appreciated.
Dan
Comment #3
inky@inky3d.com CreditAttribution: inky@inky3d.com commentedI have also reverted back to the previous version of the module, as the single check box is not useful for our purposes either.
We have one list, with multiple options under the interests. By default one should be able to force someone to signup to the mailling list if the there is only the one option on that form.
Comment #4
dbaasi CreditAttribution: dbaasi commentedCan confirm quick fix patch works when manually applied to 7.x-3.2, thanks
Comment #5
wickwood CreditAttribution: wickwood commentedThis patch worked for me as well, but I also had to manually apply it to 7.x-3.2.
Thanks for the patch
Comment #6
AlfTheCat CreditAttribution: AlfTheCat commentedConfirming the solution in #1 works when applying the patch manually.
I've included my modifed mailchimp_signup.module file, renamed with a .txt extension to allow it to be uploaded here.
Thanks!
Comment #7
inky@inky3d.com CreditAttribution: inky@inky3d.com commentedIf you have interest groups within the mailing list, this patch doesn't work 100%, as the hidden element includes the checkbox and the entire interest list fieldset below it.
I've had to change line 264:
$mailchimp_list_checkbox_wrapper_class = " element-hidden";
Changed "element-hidden" to the class "hide-single", and in my css I've included this:
.mailchimp-newsletter-wrapper.hide-single > .form-type-checkbox { display: none; }
In case anyone else comes across this problem.
Comment #8
jacktonkin CreditAttribution: jacktonkin commentedThis was introduced in #2347397: Notice : Undefined index: web_id dans mailchimp_signup_subscribe_form() (ligne 290 dans [drupal_home]/sites/all/modules/contrib/mailchimp/modules/mailchimp_signup/mailchimp_signup.module) when MC service is unreachable and looks like a simple counting error: checkboxes should only be displayed if there is more than one list, not one or more.
The submit handler has a special case for exactly one list so there's no need to submit hidden fields.
Attached is a one-line patch.
Comment #9
jacktonkin CreditAttribution: jacktonkin commentedComment #10
joostvdl CreditAttribution: joostvdl commentedPatch from #8 is working for me.
Comment #11
Pendrokar CreditAttribution: Pendrokar commentedI am confirming this as an issue and agree with issue creator that checkboxes should show up only when there is more than one list.
Comment #12
gcbThat regression is no fun! I'll be rolling this patch into Dev shortly and it'll be in the next release.
Comment #14
gcb