Needs work
Project:
Simplenews
Version:
7.x-1.x-dev
Component:
Usability
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Feb 2012 at 14:29 UTC
Updated:
9 Mar 2015 at 21:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
hydra commentedThe patch should do the described feature.
I'm not sure whether it is useful to provide this feature in the subscription block as well.
Comment #2
hydra commentedstatusupdate....
Comment #4
berdirInteresting idea, but needs work...
- Comments should start with an upper case character.
- Instead of altering the form later on, we should generate it correctly in the first place
- Also needs to work for anonymous users, for which we display a mail address form field instead of displaying the mail address.
- Yes, the multi-checkout block should probably behave in the same way. Maybe we could create an re-use a common function for those two forms.
- As you can see there are quite a lot of tests that currently fail now because they either try to set the newsletter checkbox explicitly or the "Trying to get property of non-object" because it's an anonymous user and there is no global $user.
A possibly simpler approach for now might also be to automatically enable the checkbox by default if it's just a single one or maybe simply respect the default on/off settings properly in all cases...
Comment #5
jcnventuraHi Berdir,
As suggested by you in #4, here is a much simpler solution to automatically enable the checkbox by default in the case of a single newsletter.
I've set it to RTBC, because this is a no-brainer change that is obviously correct, as can be seen by the patch.
Comment #7
jcnventuraTest is broken.. It only uses one random newsletter, and of course by design this patch makes it so that it is always enabled. So the test actually worked, somewhat.