Skip to content

FIO-9942: apply evaluator override properties to fix interpolation is…#6203

Closed
Maria-Golomb wants to merge 2 commits intomasterfrom
FIO-9942-noeval-option-fix
Closed

FIO-9942: apply evaluator override properties to fix interpolation is…#6203
Maria-Golomb wants to merge 2 commits intomasterfrom
FIO-9942-noeval-option-fix

Conversation

@Maria-Golomb
Copy link
Copy Markdown
Contributor

@Maria-Golomb Maria-Golomb commented Jul 31, 2025

…sues

Link to Jira Ticket

https://formio.atlassian.net/browse/FIO-9942

Description

Copy override evaluator noeval properte to DefaultEvaluator instance to prevent CSP errors from lodash template function during interpolation. Restores formiojs 4.x behavior.

Breaking Changes / Backwards Compatibility

Dependencies

How has this PR been tested?

manually

Checklist:

  • I have completed the above PR template
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (if applicable)
  • My changes generate no new warnings
  • My changes include tests that prove my fix is effective (or that my feature works as intended)
  • New and existing unit/integration tests pass locally with my changes
  • Any dependent changes have corresponding PRs that are listed above

Comment thread src/utils/Evaluator.js
* @returns {void}
*/
export function registerEvaluator(override) {
if(override.noeval){
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just make the Protected-Eval Evaluator class inherit from the base class that's now in @formio/core? That seems safer to me (and more type safe at the end of the day!) than just trying to copy parameters and hope they exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants