Skip to content

Commit

Permalink
Fixed issue #17870: Default value with line feed broke Expression Script
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Sep 19, 2022
1 parent 4f3c411 commit c26948d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/expressions/em_manager_helper.php
Expand Up @@ -4268,7 +4268,7 @@ public function setVariableAndTokenMappingsForExpressionManager($surveyid,$force
// . "','relevance':'" . (($relevance != '') ? htmlspecialchars(preg_replace('/[[:space:]]/',' ',$relevance),ENT_QUOTES) : 1)
// . "','readWrite':'" . $readWrite
// . "','grelevance':'" . (($grelevance != '') ? htmlspecialchars(preg_replace('/[[:space:]]/',' ',$grelevance),ENT_QUOTES) : 1)
. "','default':'" . (is_null($defaultValue) ? '' : str_replace("'", "\'", $defaultValue))
. "','default':'" . (is_null($defaultValue) ? '' : json_encode($defaultValue)) // Don't found usage in em_javascript, used in expression ?
. "','rowdivid':'" . (is_null($rowdivid) ? '' : $rowdivid)
. "','onlynum':'" . ($onlynum ? '1' : '')
. "','gseq':" . $groupSeq
Expand Down

0 comments on commit c26948d

Please sign in to comment.