-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hide invisible fields from email output according to visibility rules, fixes #1131 #1134
hide invisible fields from email output according to visibility rules, fixes #1131 #1134
Conversation
A sentence of text for the docs/changelog would be also good since some users may rely on all fields being in the export/email regardless of their display rules, so they would need to provide a custom template after this change. |
That's a good point. It wouldn't hurt to add a configuration option (perhaps on the |
Also, we should probably mention in a comment on this PR that this fixes #1131 so there is a link between this and the issue. |
Thanks @GuySartorelli and @michalkleiner for your feedback. I have
These changes make sure that the current behaviour is maintained unless someone changes the settings on the recipient. Where in the docs do you want me to mention this? There is no changelog file per se. |
That's great work! Thank you.
I'd probably recommend somewhere in https://github.com/silverstripe/silverstripe-userforms/blob/5/docs/en/userguide/form-submissions.md#email-details |
Would it make sense to set the default of |
done. |
I don't think so. It would be a departure from behaviour users are currently expecting and may even rely on. I can imagine cases for example where there are default values (perhaps hidden because the user filling in the form didn't tick a box that lets them edit the values) in a submission that need to be passed on to someone in the business who wasn't directly involved with setting up the form. That said I'd defer to @michalkleiner in this case. |
@GuySartorelli That's fine with me, no problem. Anything else to get this merged? |
That will be up to @michalkleiner or one of the other core committers - looks like the tests need fixing though. |
6a21f08
to
ac4bd02
Compare
The Behat tests fail here: https://github.com/silverstripe/silverstripe-userforms/blob/5/tests/behat/features/userforms.feature#L144 Any ideas why? I don't get it. |
The failing test doesn't seem to be caused by my changes, https://github.com/silverstripe/silverstripe-userforms/pull/1101/checks?check_run_id=5492750488 is failing too. Can this be merged and tagged please? |
Yep, it seems the failure is not related to these changes. |
632bf44
to
33e9a25
Compare
@michalkleiner done, thanks! |
@michalkleiner great, thanks so much! |
No description provided.