hof 20.0.0-beta.29 → 20.0.0-beta.30
Sign up to get free protection for your applications and to get access to all the features.
- package/.nyc_output/19d65ff1-2145-4f30-a2cb-ec31dee604f4.json +1 -0
- package/.nyc_output/processinfo/19d65ff1-2145-4f30-a2cb-ec31dee604f4.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -0
- package/controller/controller.js +8 -3
- package/package.json +1 -1
- package/sandbox/apps/sandbox/fields.js +1 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"parent":null,"pid":70783,"argv":["/usr/local/Cellar/node/18.2.0/bin/node","/Users/user/Documents/HO/HOF/hof/node_modules/.bin/_mocha","test/**/*.spec.js","sandbox/test/**/*.spec.js"],"execArgv":[],"cwd":"/Users/user/Documents/HO/HOF/hof","time":1662542033673,"ppid":70781,"coverageFilename":"/Users/user/Documents/HO/HOF/hof/.nyc_output/19d65ff1-2145-4f30-a2cb-ec31dee604f4.json","externalId":"","uuid":"19d65ff1-2145-4f30-a2cb-ec31dee604f4","files":["/Users/user/Documents/HO/HOF/hof/model/index.js","/Users/user/Documents/HO/HOF/hof/components/index.js","/Users/user/Documents/HO/HOF/hof/components/address-lookup/index.js","/Users/user/Documents/HO/HOF/hof/components/address-lookup/default-model.js","/Users/user/Documents/HO/HOF/hof/components/address-lookup/defaults.js","/Users/user/Documents/HO/HOF/hof/components/clear-session/index.js","/Users/user/Documents/HO/HOF/hof/components/date/index.js","/Users/user/Documents/HO/HOF/hof/components/date/fields.js","/Users/user/Documents/HO/HOF/hof/components/emailer/index.js","/Users/user/Documents/HO/HOF/hof/components/emailer/email-service.js","/Users/user/Documents/HO/HOF/hof/components/emailer/emailer.js","/Users/user/Documents/HO/HOF/hof/components/emailer/transports/index.js","/Users/user/Documents/HO/HOF/hof/components/emailer/transports/smtp.js","/Users/user/Documents/HO/HOF/hof/components/emailer/transports/ses.js","/Users/user/Documents/HO/HOF/hof/components/emailer/transports/stub.js","/Users/user/Documents/HO/HOF/hof/components/emailer/transports/debug.js","/Users/user/Documents/HO/HOF/hof/components/notify/index.js","/Users/user/Documents/HO/HOF/hof/components/notify/notify.js","/Users/user/Documents/HO/HOF/hof/components/summary/index.js","/Users/user/Documents/HO/HOF/hof/config/rate-limits.js","/Users/user/Documents/HO/HOF/hof/middleware/rate-limiter.js","/Users/user/Documents/HO/HOF/hof/config/hof-defaults.js","/Users/user/Documents/HO/HOF/hof/controller/base-controller.js","/Users/user/Documents/HO/HOF/hof/controller/formatting/index.js","/Users/user/Documents/HO/HOF/hof/controller/validation/index.js","/Users/user/Documents/HO/HOF/hof/controller/validation/validators.js","/Users/user/Documents/HO/HOF/hof/controller/validation/email.js","/Users/user/Documents/HO/HOF/hof/controller/validation-error.js","/Users/user/Documents/HO/HOF/hof/utilities/index.js","/Users/user/Documents/HO/HOF/hof/utilities/autofill/index.js","/Users/user/Documents/HO/HOF/hof/utilities/autofill/inputs.js","/Users/user/Documents/HO/HOF/hof/utilities/test-data/index.js","/Users/user/Documents/HO/HOF/hof/utilities/countries.js","/Users/user/Documents/HO/HOF/hof/utilities/helpers/index.js","/Users/user/Documents/HO/HOF/hof/utilities/reqres/index.js","/Users/user/Documents/HO/HOF/hof/config/sanitisation-rules.js","/Users/user/Documents/HO/HOF/hof/controller/formatting/formatters.js","/Users/user/Documents/HO/HOF/hof/controller/index.js","/Users/user/Documents/HO/HOF/hof/controller/behaviour-session.js","/Users/user/Documents/HO/HOF/hof/controller/behaviour-hooks.js","/Users/user/Documents/HO/HOF/hof/controller/controller.js","/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/country-select.js","/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/index.js","/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/template-mixins.js","/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/render.js","/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/helpers.js","/Users/user/Documents/HO/HOF/hof/index.js","/Users/user/Documents/HO/HOF/hof/frontend/index.js","/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/index.js","/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/build/index.js","/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/build/config.js","/Users/user/Documents/HO/HOF/hof/frontend/template-partials/index.js","/Users/user/Documents/HO/HOF/hof/frontend/template-partials/translations/index.js","/Users/user/Documents/HO/HOF/hof/frontend/themes/index.js","/Users/user/Documents/HO/HOF/hof/frontend/themes/gov-uk/index.js","/Users/user/Documents/HO/HOF/hof/frontend/toolkit/index.js","/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/helpers.js","/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/form-focus.js","/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/progressive-reveal.js","/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/validation.js","/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/character-count.js","/Users/user/Documents/HO/HOF/hof/middleware/index.js","/Users/user/Documents/HO/HOF/hof/middleware/cookies.js","/Users/user/Documents/HO/HOF/hof/middleware/errors.js","/Users/user/Documents/HO/HOF/hof/middleware/not-found.js","/Users/user/Documents/HO/HOF/hof/middleware/deep-translate.js","/Users/user/Documents/HO/HOF/hof/lib/markdown.js","/Users/user/Documents/HO/HOF/hof/lib/router.js","/Users/user/Documents/HO/HOF/hof/wizard/index.js","/Users/user/Documents/HO/HOF/hof/wizard/behaviours/index.js","/Users/user/Documents/HO/HOF/hof/wizard/behaviours/complete.js","/Users/user/Documents/HO/HOF/hof/wizard/util/constants.js","/Users/user/Documents/HO/HOF/hof/lib/helpers.js","/Users/user/Documents/HO/HOF/hof/lib/health.js","/Users/user/Documents/HO/HOF/hof/lib/serve-static.js","/Users/user/Documents/HO/HOF/hof/lib/ga-tag.js","/Users/user/Documents/HO/HOF/hof/lib/sessions.js","/Users/user/Documents/HO/HOF/hof/lib/settings.js","/Users/user/Documents/HO/HOF/hof/lib/logger.js","/Users/user/Documents/HO/HOF/hof/build/index.js","/Users/user/Documents/HO/HOF/hof/config/builder-defaults.js","/Users/user/Documents/HO/HOF/hof/transpiler/index.js","/Users/user/Documents/HO/HOF/hof/transpiler/lib/compile.js","/Users/user/Documents/HO/HOF/hof/transpiler/lib/build.js","/Users/user/Documents/HO/HOF/hof/transpiler/lib/expand-dirs.js","/Users/user/Documents/HO/HOF/hof/transpiler/lib/aggregate.js","/Users/user/Documents/HO/HOF/hof/transpiler/lib/write-files.js","/Users/user/Documents/HO/HOF/hof/model/apis/index.js","/Users/user/Documents/HO/HOF/hof/model/apis/html-to-pdf-converter.js","/Users/user/Documents/HO/HOF/hof/wizard/model.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/back-links.js","/Users/user/Documents/HO/HOF/hof/wizard/util/helpers.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-complete.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-progress.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-session.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/csrf.js","/Users/user/Documents/HO/HOF/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js","/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/sections/summary-data-sections.js","/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/lib/staticAppealStages.js","/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/fields.js","/Users/user/Documents/HO/HOF/hof/sandbox/test/helpers/utilities.js","/Users/user/Documents/HO/HOF/hof/lib/encryption.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/session.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/session-model.js"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"processes":{"19d65ff1-2145-4f30-a2cb-ec31dee604f4":{"parent":null,"children":[]}},"files":{"/Users/user/Documents/HO/HOF/hof/model/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/components/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/components/address-lookup/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/components/address-lookup/default-model.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/components/address-lookup/defaults.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/components/clear-session/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/components/date/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/components/date/fields.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/components/emailer/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/components/emailer/email-service.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/components/emailer/emailer.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/smtp.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/ses.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/stub.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/debug.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/components/notify/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/components/notify/notify.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/components/summary/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/config/rate-limits.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/middleware/rate-limiter.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/config/hof-defaults.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/controller/base-controller.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/controller/formatting/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/controller/validation/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/controller/validation/validators.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/controller/validation/email.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/controller/validation-error.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/utilities/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/utilities/autofill/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/utilities/autofill/inputs.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/utilities/test-data/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/utilities/countries.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/utilities/helpers/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/utilities/reqres/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/config/sanitisation-rules.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/controller/formatting/formatters.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/controller/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/controller/behaviour-session.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/controller/behaviour-hooks.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/controller/controller.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/country-select.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/template-mixins.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/render.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/helpers.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/frontend/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/build/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/build/config.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/frontend/template-partials/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/frontend/template-partials/translations/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/frontend/themes/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/frontend/themes/gov-uk/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/helpers.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/form-focus.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/validation.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/character-count.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/middleware/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/middleware/cookies.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/middleware/errors.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/middleware/not-found.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/middleware/deep-translate.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/lib/markdown.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/lib/router.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/wizard/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/wizard/behaviours/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/wizard/behaviours/complete.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/wizard/util/constants.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/lib/helpers.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/lib/health.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/lib/serve-static.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/lib/ga-tag.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/lib/sessions.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/lib/settings.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/lib/logger.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/build/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/config/builder-defaults.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/transpiler/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/compile.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/build.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/expand-dirs.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/aggregate.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/write-files.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/model/apis/index.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/model/apis/html-to-pdf-converter.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/wizard/model.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/back-links.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/wizard/util/helpers.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-complete.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-progress.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-session.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/csrf.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/fields.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/sandbox/test/helpers/utilities.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/lib/encryption.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/session.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/session-model.js":["19d65ff1-2145-4f30-a2cb-ec31dee604f4"]},"externalIds":{}}
|
package/controller/controller.js
CHANGED
@@ -171,9 +171,14 @@ module.exports = class Controller extends BaseController {
|
|
171
171
|
Object.keys(req.form.errors).forEach(key => {
|
172
172
|
if (req.form && req.form.options && req.form.options.fields) {
|
173
173
|
const field = req.form.options.fields[key];
|
174
|
-
// get first option for radios
|
175
|
-
if (field.mixin === 'radio-group') {
|
176
|
-
|
174
|
+
// get first option for radios and checkbox
|
175
|
+
if (field.mixin === 'radio-group' || field.mixin === 'checkbox-group') {
|
176
|
+
// get first option for radios and checkbox where there is a toggle
|
177
|
+
if(typeof field.options[0] === 'object') {
|
178
|
+
req.form.errors[key].errorLinkId = key + '-' + field.options[0].value;
|
179
|
+
} else {
|
180
|
+
req.form.errors[key].errorLinkId = key + '-' + field.options[0];
|
181
|
+
}
|
177
182
|
// eslint-disable-next-line brace-style
|
178
183
|
}
|
179
184
|
// get first field for date input control
|
package/package.json
CHANGED