From 3ae83eb58330461e7ad4ce17bb230b6e9320b060 Mon Sep 17 00:00:00 2001 From: isoeli Date: Thu, 24 Oct 2024 21:35:37 +0200 Subject: [PATCH 1/5] DOC fix and clean up documentation links Fixed relative paths in features section Removed link to non-existent markdown file --- docs/en/userguide/index.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/en/userguide/index.md b/docs/en/userguide/index.md index 416d5a11..a1e83189 100644 --- a/docs/en/userguide/index.md +++ b/docs/en/userguide/index.md @@ -31,7 +31,6 @@ Here are a few tips to get you started: ## Features -- [Create and edit forms](creating-and-editing-forms.md) -- [Add different field types to a form](field-types.md) -- [Set up multipage forms](multipage-forms.md) -- [View submissions and set up automated emails upon form completion](form-submissions.md) +- [Create and edit forms](01_creating-and-editing-forms.md) +- [Add different field types to a form](02_field-types.md) +- [View submissions and set up automated emails upon form completion](03_form-submissions.md) From a477a917c0c13be77562cef25ba27f2666b57cff Mon Sep 17 00:00:00 2001 From: isoeli Date: Thu, 24 Oct 2024 21:35:37 +0200 Subject: [PATCH 2/5] DOC fix and clean up documentation links Fixed relative paths in features section Removed link to non-existent markdown file --- docs/en/userguide/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/userguide/index.md b/docs/en/userguide/index.md index a1e83189..7c53e4ef 100644 --- a/docs/en/userguide/index.md +++ b/docs/en/userguide/index.md @@ -24,7 +24,7 @@ Here are a few tips to get you started: - Ensure you have the necessary consents for processing and storing data according to your legislation (e.g. GDPR) - Only accept form submissions via encrypted transfers (HTTPS) - check our [Secure Coding](https://docs.silverstripe.org/en/developer_guides/security/secure_coding/) guidelines - Control access to form submissions (via CMS page access controls) -- Control access to files uploaded with submissions (via [folder access controls](field-types.md#file-upload-field)) +- Control access to files uploaded with submissions (via [folder access controls](02_field-types.md#file-upload-field)) - Create a process to limit the types of data you are allowed to collect via this feature (e.g. no payment information or health data) - Create a process for limiting submission storage duration (manual deletion) - Consider further safeguards such as at-rest encryption (check [encryption related addons](https://addons.silverstripe.org/add-ons?search=encrypt)) From 82375373f81b4157ca6a24b2cb7400f645c3e67f Mon Sep 17 00:00:00 2001 From: isoeli Date: Thu, 14 Nov 2024 03:06:05 +0100 Subject: [PATCH 3/5] DOC fix and adjust links based on contribution guidelines - Adjusted links according to the contribution guidelines for documentation - Removed link to non-existent markdown file --- docs/en/userguide/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/userguide/index.md b/docs/en/userguide/index.md index 7c53e4ef..039e410d 100644 --- a/docs/en/userguide/index.md +++ b/docs/en/userguide/index.md @@ -24,13 +24,13 @@ Here are a few tips to get you started: - Ensure you have the necessary consents for processing and storing data according to your legislation (e.g. GDPR) - Only accept form submissions via encrypted transfers (HTTPS) - check our [Secure Coding](https://docs.silverstripe.org/en/developer_guides/security/secure_coding/) guidelines - Control access to form submissions (via CMS page access controls) -- Control access to files uploaded with submissions (via [folder access controls](02_field-types.md#file-upload-field)) +- Control access to files uploaded with submissions (via [folder access controls](./field-types#file-upload-field)) - Create a process to limit the types of data you are allowed to collect via this feature (e.g. no payment information or health data) - Create a process for limiting submission storage duration (manual deletion) - Consider further safeguards such as at-rest encryption (check [encryption related addons](https://addons.silverstripe.org/add-ons?search=encrypt)) ## Features -- [Create and edit forms](01_creating-and-editing-forms.md) -- [Add different field types to a form](02_field-types.md) -- [View submissions and set up automated emails upon form completion](03_form-submissions.md) +- [Create and edit forms](./creating-and-editing-forms) +- [Add different field types to a form](./field-types) +- [View submissions and set up automated emails upon form completion](./form-submissions) From a05725a1659289f4296663a8e278b25a0f8f02e0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 12:23:41 +1300 Subject: [PATCH 4/5] Bump cross-spawn from 7.0.3 to 7.0.6 (#1351) Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6. - [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md) - [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6) --- updated-dependencies: - dependency-name: cross-spawn dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index d2942dbc..0c9c375b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2270,9 +2270,9 @@ cosmiconfig@^9.0.0: parse-json "^5.2.0" cross-spawn@^7.0.2, cross-spawn@^7.0.3: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" - integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== + version "7.0.6" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f" + integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA== dependencies: path-key "^3.1.0" shebang-command "^2.0.0" From 545931234bdbdd2ad41c26aa811b4ab1a9269637 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 5 Dec 2024 17:21:01 +1300 Subject: [PATCH 5/5] API Deprecate renamed validator --- code/Form/UserFormsRequiredFields.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/Form/UserFormsRequiredFields.php b/code/Form/UserFormsRequiredFields.php index 0d7c4b38..e36a5822 100644 --- a/code/Form/UserFormsRequiredFields.php +++ b/code/Form/UserFormsRequiredFields.php @@ -9,6 +9,7 @@ use SilverStripe\Forms\RequiredFields; use SilverStripe\ORM\ArrayLib; use SilverStripe\UserForms\Model\EditableFormField; +use SilverStripe\Dev\Deprecation; /** * An extension of RequiredFields which handles conditionally required fields. @@ -19,9 +20,17 @@ * * Required fields will be validated as usual. * Conditionally required fields will be validated IF the display rules are satisfied in the submitted dataset. + * + * @deprecated 5.4.0 Will be renamed to SilverStripe\UserForms\Form\UserFormsRequiredFieldsValidator */ class UserFormsRequiredFields extends RequiredFields { + public function __construct() + { + Deprecation::noticeWithNoReplacment('5.4.0', 'Will be renamed to SilverStripe\\UserForms\\Form\\UserFormsRequiredFieldsValidator', Deprecation::SCOPE_CLASS); + parent::__construct(...func_get_args()); + } + /** * Allows validation of fields via specification of a php function for * validation which is executed after the form is submitted.