InseeFr / Lunatic

Library of questionnaire components
https://inseefr.github.io/Lunatic/
MIT License
20 stars 21 forks source link

fix: calculated variable incorrectly initialized when empty #1018

Closed Grafikart closed 1 month ago

Grafikart commented 1 month ago

In a recent change source.json set empty array for collected variable.

{
    "name": "T_PRENOM",
    "values": {
-       "COLLECTED": [null]
+       "COLLECTED": []
    }
}

This change created a cascade effect when a calculated variable was calculated outside of an iteration. This can happen when overview is used.

Fix #1015

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud