silverstripe / silverstripe-userforms

UserForms module provides a visual form builder for the Silverstripe CMS. No coding required to build forms such as contact pages.
BSD 3-Clause "New" or "Revised" License
135 stars 226 forks source link

fix: prevent CMS requirements from leaking into preview email #1297

Closed wilr closed 3 weeks ago

wilr commented 1 month ago

Description

When previewing an email template, the current behaviour is to include existing CMS styles which can be misleading.

Manual testing steps

Issues

Pull request checklist

Screenshot 2024-05-31 at 10 23 29 AM

GuySartorelli commented 1 month ago

I've added back the spot from the pull request template where a link to a issue needs to go. Can you please link to an issue? You'll need to create one if there isn't one already.

This is important because it lets us track the issue in Zenhub, which the CMS Squad uses to keep track of the progress of issues. We don't track PRs, so this may not every be reviewed properly if there's no issue for us to track.

GuySartorelli commented 1 month ago

Please also retarget this to the 6.2 branch so it can be released as a patch. You may need to reset your commits after retargetting the PR.

wilr commented 1 month ago

Rebased on 6.2 now!

wilr commented 1 month ago

This is important because it lets us track the issue in Zenhub, which the CMS Squad uses to keep track of the progress of issues. We don't track PRs, so this may not every be reviewed properly if there's no issue for us to track.

Ah another reason Zenhub should die! Far too much duplication

wilr commented 3 weeks ago

Sorry it's taken so long to review this. Mostly looks good, but should call Requirements::restore() after rendering the template.

Done