<?xml version="1.0" encoding="utf-8"?>
<!--RSS generated by Flaimo.com RSS Builder [2026-12-01 02:26:36]-->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"><channel><docs>https://bugs.limesurvey.org/</docs><link>https://bugs.limesurvey.org/</link><description><![CDATA[LimeSurvey bugs and feature requests - Issues]]></description><title>LimeSurvey bugs and feature requests - Issues</title><image><title>LimeSurvey bugs and feature requests - Issues</title><url>https://bugs.limesurvey.org/images/mantis_logo.png</url><link>https://bugs.limesurvey.org/</link><description><![CDATA[LimeSurvey bugs and feature requests - Issues]]></description></image><language>en</language><category>All Projects</category><ttl>10</ttl><dc:language>en</dc:language><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><item><title>20912: Core: `slider-touched` class and visible tooltip on an untouched slider when `slider_default_set` is on</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20912</link><description><![CDATA[`assets/packages/questions/numeric-slider/scripts/numeric-slider.js` manages the&lt;br /&gt;
classes `slider-untouched` / `slider-touched` / `slider-reset` on the `.slider`&lt;br /&gt;
element (`sliderObject.$sliderElem`) and the tooltip visibility, but when the&lt;br /&gt;
question attribute `slider_default_set` is enabled (&quot;Set default position&quot;), an&lt;br /&gt;
**untouched** slider keeps the class `slider-touched` and keeps its value tooltip&lt;br /&gt;
visible, because the cleanup branch is guarded by `if (!setPosition)`:&lt;br /&gt;
&lt;br /&gt;
```js&lt;br /&gt;
// createSlider()&lt;br /&gt;
if (rootElementObject.val() === &quot;&quot;) {&lt;br /&gt;
    setValue(null, true, true);               // -&gt; triggerChanges() adds slider-touched&lt;br /&gt;
    if (!setPosition) {                       // &lt;- skipped when slider_default_set = Y&lt;br /&gt;
        sliderObject.$sliderElem.removeClass('slider-touched').addClass('slider-untouched');&lt;br /&gt;
        sliderObject.$sliderElem.find('div.tooltip').hide();&lt;br /&gt;
        rootElementObject.val('').trigger('keyup');&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
(`setValue()` → `triggerChanges()` does&lt;br /&gt;
`sliderObject.$sliderElem.removeClass('slider-untouched').addClass('slider-touched')`&lt;br /&gt;
unconditionally, so with `setPosition` the element ends up `slider-touched` even&lt;br /&gt;
though the respondent never touched it.)]]></description><category>Question theme</category><pubDate>Mon, 30 Nov 2026 16:22:12 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20912</guid><comments>https://bugs.limesurvey.org/view.php?id=20912#bugnotes</comments></item><item><title>20911: Core: unguarded `JSON.parse($('#optionCssFiles').val())` crashes the whole theme-options JS when the field is `inherit`</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20911</link><description><![CDATA[`assets/packages/themeoptions-core/themeoptions-core.js:15` does:&lt;br /&gt;
&lt;br /&gt;
```js&lt;br /&gt;
var optionCssFiles = JSON.parse($('#optionCssFiles').val());&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
On the **global** theme options page (`index.php?r=themeOptions/update&amp;id=&lt;global tc id&gt;`)&lt;br /&gt;
the hidden field rendered by `application/views/themeOptions/update.php:106`&lt;br /&gt;
(`CHtml::hiddenField('optionCssFiles', $optionCssFiles)`) can hold the literal&lt;br /&gt;
string `inherit` — `SurveyThemeConfiguration::updateCommon()` passes&lt;br /&gt;
`$preparedThemeConfigurationModel-&gt;files_css`, which resolves to `inherit` at&lt;br /&gt;
global level for themes extending another theme.&lt;br /&gt;
&lt;br /&gt;
`JSON.parse('inherit')` throws a `SyntaxError` **inside the `ThemeOptions`&lt;br /&gt;
constructor**, so `run()` never executes: no `change` handlers, no&lt;br /&gt;
`onSaveButtonClickAction` on `#theme-options--submit`. Clicking Save then falls&lt;br /&gt;
through to a native form submit that posts the **stale**&lt;br /&gt;
`TemplateConfiguration[options]` textarea — nothing the user changed in the UI&lt;br /&gt;
is saved. (At survey level `optionCssFiles` is valid JSON, so the bug only&lt;br /&gt;
shows on the global options page.)]]></description><category>Assets</category><pubDate>Mon, 30 Nov 2026 17:46:45 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20911</guid><comments>https://bugs.limesurvey.org/view.php?id=20911#bugnotes</comments></item><item><title>20910: Too much empty (unused) space when editing the survey</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20910</link><description><![CDATA[When editing the survey settings and closing the menu, i'd expect that the content would use the free space and move to the left.]]></description><category>Survey editing</category><pubDate>Mon, 30 Nov 2026 14:00:11 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20910</guid><comments>https://bugs.limesurvey.org/view.php?id=20910#bugnotes</comments></item><item><title>20909: fruity_twentythree/buttons/buttons_colors.scss can highlight multiple buttons at once</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20909</link><description><![CDATA[The hover selector here:&lt;br /&gt;
&lt;br /&gt;
.btn-check {&lt;br /&gt;
    + .btn-primary {&lt;br /&gt;
        &amp;:hover {&lt;br /&gt;
            color            : $base-color-contrast;&lt;br /&gt;
            background-color : $btn-primary-color;&lt;br /&gt;
            border-color     : $btn-primary-color;&lt;br /&gt;
            box-shadow       : none;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
interacts badly with iOS 26 Safari's rather unusual handling of this state. Safari emulates this state in such a way that it can get stuck. If you view the attached survey on Safari, select one of the options, then swipe from a second option to a third, two options appear selected. This is obviously not ideal.&lt;br /&gt;
&lt;br /&gt;
This appears to have been an issue on other web apps.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://github.com/common-voice/common-voice/issues/424&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/common-voice/common-voice/issues/424&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://medium.com/@kristiantolleshaugmrch/fixing-the-double-tap-issue-in-ios-safari-with-javascript-4e72a18a1feb&quot; rel=&quot;noopener,nofollow&quot;&gt;https://medium.com/@kristiantolleshaugmrch/fixing-the-double-tap-issue-in-ios-safari-with-javascript-4e72a18a1feb&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The official way to fix this seems to be to use the &quot;hover&quot; media feature. &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@media/hover&quot; rel=&quot;noopener,nofollow&quot;&gt;https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@media/hover&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
This custom.css patches over the issue and seems to work for me:&lt;br /&gt;
&lt;br /&gt;
@media (hover: none) {&lt;br /&gt;
    .btn-check:not(:checked) + .btn-primary:hover {&lt;br /&gt;
        color: #6e748c;&lt;br /&gt;
        background-color: #ffffff;&lt;br /&gt;
        border: 2px solid #6e748c;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Obviously it'd be better to fix in the SCCS, though.]]></description><category>Survey taking</category><pubDate>Mon, 30 Nov 2026 13:18:28 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20909</guid><comments>https://bugs.limesurvey.org/view.php?id=20909#bugnotes</comments></item><item><title>20907: PHP error whan import invalid XML files</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20907</link><description><![CDATA[*Steps to reproduce**&lt;br /&gt;
&lt;br /&gt;
*Label set*&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
**Expected result**&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
**Actual result**&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
**Additional information**]]></description><category>Import/Export</category><pubDate>Mon, 30 Nov 2026 13:59:52 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20907</guid><comments>https://bugs.limesurvey.org/view.php?id=20907#bugnotes</comments></item><item><title>20906: Survey participant attribute encryption setting is not respected when sharing CPDB participants</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20906</link><description><![CDATA[When sharing a CPDB participant with a survey, the encryption setting configured for the corresponding survey participant attribute is not respected.&lt;br /&gt;
&lt;br /&gt;
The CPDB attribute remains unencrypted in the survey, although the survey participant attribute is configured as encrypted.]]></description><category>Central participant database</category><pubDate>Sat, 28 Nov 2026 14:33:02 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20906</guid><comments>https://bugs.limesurvey.org/view.php?id=20906#bugnotes</comments></item><item><title>20905: All-in-one surveys with a data policy could not be submitted with themes overriding the welcome message</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20905</link><description><![CDATA[When a survey theme extending Fruity TwentyThree has its own welcome template, the data policy checkbox is no longer shown in all-in-one mode. Since the data policy is checked on submit, every submission is rejected without saving and the survey starts again without an error message.]]></description><category>Survey taking</category><pubDate>Mon, 30 Nov 2026 11:59:33 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20905</guid><comments>https://bugs.limesurvey.org/view.php?id=20905#bugnotes</comments></item><item><title>20903: CPDB: attributes are not overwritten when the existing central participant is found by name and email</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20903</link><description><![CDATA[When survey participants are added to the CPDB, an existing central participant is found by participant_id, or else by firstname, lastname and email (Participant::getDuplicates()).&lt;br /&gt;
&lt;br /&gt;
With the overwrite options, Participant::updateAttributeValueToken() then reads the survey participant row with &quot;participant_id = &lt;id of the central participant&gt;&quot;. When the central participant was found by firstname, lastname and email, the survey participant has no participant_id or another one: no row is found and nothing is copied. The participant is counted as a duplicate, but its attributes are not updated, without any message.]]></description><category>Central participant database</category><pubDate>Sat, 28 Nov 2026 14:35:33 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20903</guid><comments>https://bugs.limesurvey.org/view.php?id=20903#bugnotes</comments></item><item><title>20902: CPDB: overwriting attributes of an existing central participant from a survey copies the raw value, encryption settings are igno</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20902</link><description><![CDATA[When survey participants are added to the central participant database (CPDB) and a matching central participant already exists, the &quot;overwrite&quot; options copy the attribute values with Participant::updateAttributeValueToken().&lt;br /&gt;
&lt;br /&gt;
This function copies the raw value of the survey participant column to participant_attribute: the value is not decrypted with the survey settings, and not encrypted with the settings of the destination CPDB attribute.&lt;br /&gt;
&lt;br /&gt;
- Survey attribute encrypted, CPDB attribute not encrypted: the CPDB attribute contains the encrypted string instead of the plain value.&lt;br /&gt;
- Survey attribute not encrypted, CPDB attribute encrypted: the plain value is stored where an encrypted value is expected (stored in clear, and it can not be decrypted when it is read).]]></description><category>Central participant database</category><pubDate>Sat, 28 Nov 2026 14:35:33 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20902</guid><comments>https://bugs.limesurvey.org/view.php?id=20902#bugnotes</comments></item><item><title>20901: New editor: Users with only some survey update permissions see editable fields whose changes are then rejected</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20901</link><description><![CDATA[In the new editor, users who have only part of the survey update permissions see fields as editable that they aren't allowed to change. When they make a change, it is rejected when saving.&lt;br /&gt;
&lt;br /&gt;
Users with all survey update permissions aren't affected. (Users with read-only permission are handled separately.)]]></description><category>Usability/user experience</category><pubDate>Thu, 26 Nov 2026 16:42:43 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20901</guid><comments>https://bugs.limesurvey.org/view.php?id=20901#bugnotes</comments></item><item><title>20900: Hiding question help does not work anymore</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20900</link><description><![CDATA[I'm chosing &quot;yes&quot; to hide a question help and the help is still there no matter the question type and the theme]]></description><category>Question editor</category><pubDate>Thu, 26 Nov 2026 14:05:04 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20900</guid><comments>https://bugs.limesurvey.org/view.php?id=20900#bugnotes</comments></item><item><title>20899: Accessibility issue with LimeSurvey array questions when using NVDA.</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20899</link><description><![CDATA[The table rows (tbody) are not correctly exposed in the accessibility tree, preventing screen reader users from navigating between cells and associating radio buttons with their corresponding row and column headers.&lt;br /&gt;
&lt;br /&gt;
The likely cause is the use of `role=&quot;radiogroup&quot;` on `&lt;tr&gt;` elements, which overrides their native table row role (row).]]></description><category>Accessibility</category><pubDate>Thu, 26 Nov 2026 10:58:27 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20899</guid><comments>https://bugs.limesurvey.org/view.php?id=20899#bugnotes</comments></item><item><title>20898: Decimal mark: accept and show numbers only in the survey language's format, consistent ExpressionScript output</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20898</link><description><![CDATA[ExpressionScript values stay in dot format everywhere; only `.shown` and an explicit `fixnum()` format a number with the language's decimal mark. Today the same expression shows a comma on the question's own page and a dot on later pages; this change makes it the same everywhere. On input, only the decimal mark of the respondent's current language is accepted. Related report: &lt;a href=&quot;https://bugs.limesurvey.org/view.php?id=20870&quot;&gt;20870&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
## Principles&lt;br /&gt;
&lt;br /&gt;
These three rules are agreed and are not changed by this spec:&lt;br /&gt;
&lt;br /&gt;
1. All numbers are stored in dot format.&lt;br /&gt;
2. Entry and display use the decimal mark configured for the language the respondent is using now (`surveyls_numberformat`: 0 = dot, 1 = comma). Input with the other separator is not accepted.&lt;br /&gt;
3. ExpressionScript calculates with the dot.&lt;br /&gt;
&lt;br /&gt;
From these rules follows one model: an attribute is either a **value** (dot, used in calculations) or a **display string** (decimal mark of the current language). Only `.shown` is a display string. The final result of an expression is printed as it is; `fixnum()` is the explicit way to format a computed number, this proposal also adds number_format() as a far more advanced way to format numbers properly without needing to apply fixnum().&lt;br /&gt;
&lt;br /&gt;
&quot;Numeric variable&quot; means every variable Expression Manager marks as `onlynum` ([em_manager_helper.php:3758-3782](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_manager_helper.php#L3758-L3782&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_manager_helper.php#L3758-L3782&lt;/a&gt;)):&lt;br /&gt;
&lt;br /&gt;
- Numerical input (N), Multiple numerical input (K), Array numbers (:)&lt;br /&gt;
- Short text (S), Multiple short text (Q), Array texts (;) and Equation (\*) with &quot;Numbers only&quot;&lt;br /&gt;
- The &quot;Other&quot; field of List (L), Multiple choice (M) and Multiple choice with comments (P) with &quot;Numbers only for 'Other'&quot;&lt;br /&gt;
&lt;br /&gt;
Other text values are never changed, even when they look like a number.&lt;br /&gt;
&lt;br /&gt;
## Output: now and after the change&lt;br /&gt;
&lt;br /&gt;
After the change, every expression gives the same output on the question's own page (JavaScript) and on later pages (PHP). Example: a French survey language with comma as decimal mark; the respondent enters `1,1` in numerical question Q00, which is stored as `1.1`.&lt;br /&gt;
&lt;br /&gt;
| Expression in question or help text | Now, same page (JS) | Now, later pages (PHP) | After the change (JS and PHP) |&lt;br /&gt;
| --- | --- | --- | --- |&lt;br /&gt;
| `{Q00}`, `{Q00.NAOK}`, `{Q00.value}` | 1,1 | 1.1 | 1.1 |&lt;br /&gt;
| `{Q00.shown}` | 1,1 | 1.1 | 1,1 |&lt;br /&gt;
| `{Q00.NAOK * 2}` | 2,2 | 2.2 | 2.2 |&lt;br /&gt;
| `{fixnum(Q00.NAOK * 2)}` | 2,2 | 2,2 | 2,2 |&lt;br /&gt;
| `{if(Q00.NAOK &gt; 1.5, &quot;high&quot;, &quot;low&quot;)}` (calculation) | low | low | low |&lt;br /&gt;
| Equation question text `{Q00.NAOK * 2}`, as displayed | 2,2 | 2.2 | 2.2 |&lt;br /&gt;
| Equation question, stored value | 2.2 | 2.2 | 2.2 |&lt;br /&gt;
| Multiple numerical &quot;Total&quot; / &quot;Remaining&quot; display | 2,2 | (same page only) | 2,2 |&lt;br /&gt;
| Built-in min/max/sum validation tips (minimum 1.5) | 1,5 | 1,5 | 1,5 |&lt;br /&gt;
&lt;br /&gt;
The &quot;1,1 / 1.1&quot; pairs on the `.shown` row and the Q00 row were checked in the browser on 7.12.1; the other rows follow from the code.&lt;br /&gt;
&lt;br /&gt;
Why it differs today:&lt;br /&gt;
&lt;br /&gt;
- **Same page:** every tailored expression result is wrapped in `LEMfixnum()`, which turns any numeric-looking result into comma format ([em_core_helper.php:1521](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_core_helper.php#L1521&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_core_helper.php#L1521&lt;/a&gt;)).&lt;br /&gt;
- **Later pages:** PHP prints the raw result; for numeric questions `.shown` returns the stored value unchanged ([em_manager_helper.php:9687](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_manager_helper.php#L9687&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_manager_helper.php#L9687&lt;/a&gt;)).&lt;br /&gt;
- **JS `.shown`** returns whatever is in the input field, so in a dot language a typed `1,1` shows as `1,1` while `.NAOK` shows `1.1` ([em_javascript.js:1042](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/assets/packages/expressions/em_javascript.js#L1042&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/assets/packages/expressions/em_javascript.js#L1042&lt;/a&gt;)).&lt;br /&gt;
&lt;br /&gt;
## Output: required changes&lt;br /&gt;
&lt;br /&gt;
1. **PHP `.shown`:** for numeric variables, return the normalised value with the decimal mark of the current language, in `_GetVarAttribute('shown')` ([em_manager_helper.php:9687](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_manager_helper.php#L9687&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_manager_helper.php#L9687&lt;/a&gt;)).&lt;br /&gt;
2. **JS `.shown`:** build the display string from the normalised value, not from the raw input field, with the same rules as PHP ([em_javascript.js:1042](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/assets/packages/expressions/em_javascript.js#L1042&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/assets/packages/expressions/em_javascript.js#L1042&lt;/a&gt;)).&lt;br /&gt;
3. **Normalisation, shared by PHP and JS:** add a leading `0` (`.5` → `0.5`) and strip trailing zeros (`1.10` → `1.1`, `2.0` → `2`). This is the same rule the reload code already applies ([frontend_helper.php:120-130](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/frontend_helper.php#L120-L130&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/frontend_helper.php#L120-L130&lt;/a&gt;), [RenderNumerical.php:141-160](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/QuestionTypes/Numerical/RenderNumerical.php#L141-L160&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/QuestionTypes/Numerical/RenderNumerical.php#L141-L160&lt;/a&gt;)), so `.shown` does not change after a respondent resumes a saved response. Best done in one PHP helper and one JS helper. This applies to Numerical input, Multiple numerical input and Array numbers; text questions with &quot;Numbers only&quot; keep the typed text (see &quot;Input: Numbers only on text questions&quot;).&lt;br /&gt;
4. **Remove the automatic `LEMfixnum()` wrap** from `GetJavaScriptFunctionForReplacement()` ([em_core_helper.php:1521](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_core_helper.php#L1521&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_core_helper.php#L1521&lt;/a&gt;)). `LEMfixnum()` itself stays as the JS side of `fixnum()`.&lt;br /&gt;
5. **Add explicit `fixnum()` to built-in texts that relied on the wrap:**&lt;br /&gt;
   - Multiple numerical &quot;Total&quot; and &quot;Remaining&quot; (`sumEqn`, `sumRemainingEqn`, [em_manager_helper.php:1850-1856](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_manager_helper.php#L1850-L1856&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_manager_helper.php#L1850-L1856&lt;/a&gt;))&lt;br /&gt;
   - Array texts / array numbers row and column totals ([em_manager_helper.php:2271](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_manager_helper.php#L2271&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_manager_helper.php#L2271&lt;/a&gt;), [:2320](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_manager_helper.php#L2320&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_manager_helper.php#L2320&lt;/a&gt;))&lt;br /&gt;
   - The min/max/sum validation tips already use `fixnum()` and need no change ([em_manager_helper.php:3013-3076](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_manager_helper.php#L3013-L3076&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_manager_helper.php#L3013-L3076&lt;/a&gt;)).&lt;br /&gt;
6. **Tests:** a PHPUnit test for PHP `.shown` in a dot and a comma language, covering every `onlynum` question type; a functional test that the same page and the next page print the same text for each row of the comparison table.&lt;br /&gt;
7. **Manual:** update the ExpressionScript pages for `.shown`, `.NAOK` and `fixnum()`.&lt;br /&gt;
&lt;br /&gt;
## Output: number_format() with 1 to 4 arguments&lt;br /&gt;
&lt;br /&gt;
`number_format()` will accept 1 to 4 arguments, like PHP: `number_format(number [, decimals [, decimal_separator [, thousands_separator]]])`. Today ExpressionScript registers it with exactly one argument ([em_core_helper.php:213](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_core_helper.php#L213&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_core_helper.php#L213&lt;/a&gt;)), so decimals cannot be set and `number_format(x, 2)` is refused with &quot;Function does not support 2 arguments&quot;. The PHP and JS functions underneath already take all four.&lt;br /&gt;
&lt;br /&gt;
This gives authors one call for a fixed number of decimals in the survey's own format, e.g. `{number_format(Q00.NAOK, 2, ',', '.')}` → `1.234,50`. Like every other function, it uses PHP's defaults (dot decimal, comma thousands) unless the separators are passed; it does not look at the survey language.&lt;br /&gt;
&lt;br /&gt;
PHP and JS must give the same result. Compared on 7.12.1 (PHP 8.5, Chromium):&lt;br /&gt;
&lt;br /&gt;
| Call | PHP (later pages) | JS (same page) | After the change, both |&lt;br /&gt;
| --- | --- | --- | --- |&lt;br /&gt;
| `number_format(1234.5678)` | 1,235 | 1,235 | 1,235 |&lt;br /&gt;
| `number_format(1234.5678, 2)` | 1,234.57 | 1,234.57 | 1,234.57 |&lt;br /&gt;
| `number_format(1234567.891, 2, ',', '.')` | 1.234.567,89 | 1.234.567,89 | 1.234.567,89 |&lt;br /&gt;
| `number_format(1234.5, 2, ',', '')` | 1234,50 | 1234,50 | 1234,50 |&lt;br /&gt;
| `number_format(1.005, 2)` | 1.01 | **1.00** | 1.01 |&lt;br /&gt;
| `number_format(-1234.5, 0)` | -1,235 | **-1,234** | -1,235 |&lt;br /&gt;
| `number_format('', 2)` (unanswered question) | **expression error** (PHP 8 `TypeError`) | 0.00 | empty string |&lt;br /&gt;
| `number_format('abc', 2)` | **expression error** | 0.00 | empty string |&lt;br /&gt;
&lt;br /&gt;
Required changes:&lt;br /&gt;
&lt;br /&gt;
1. Register `number_format` with 1, 2, 3 or 4 arguments and update its signature and help text to show the optional arguments.&lt;br /&gt;
2. JS: round like PHP, half away from zero on the decimal value, not on the binary float. `Decimal.js` is already loaded on survey pages and can do this (`ROUND_HALF_UP`).&lt;br /&gt;
3. PHP and JS: an empty or non-numeric first argument returns an empty string instead of an error or `0.00`. Today the PHP error is caught and shown as an expression error ([em_core_helper.php:2394-2397](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_core_helper.php#L2394-L2397&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_core_helper.php#L2394-L2397&lt;/a&gt;)).&lt;br /&gt;
4. Manual: document the arguments, and that `fixnum()` must not be wrapped around `number_format()` (in a comma language `fixnum('1,234.57')` turns the dot into a second comma: `1,234,57`).&lt;br /&gt;
&lt;br /&gt;
## Output: decimalmark() function&lt;br /&gt;
&lt;br /&gt;
A new function `decimalmark()` returns the decimal mark of the respondent's current survey language: `.` or `,`. It gives the same result in PHP and JS, and it follows a language switch during the survey. As a function it cannot clash with a question code, so existing surveys are not affected (a reserved variable such as `{DECIMALMARK}` could clash with a question of that code).&lt;br /&gt;
&lt;br /&gt;
With `number_format()` it gives the language's format without listing languages:&lt;br /&gt;
&lt;br /&gt;
| Expression | English (dot) | French (comma) |&lt;br /&gt;
| --- | --- | --- |&lt;br /&gt;
| `{number_format(Q00.NAOK, 2, decimalmark(), '')}` | 1234.50 | 1234,50 |&lt;br /&gt;
| `{decimalmark()}` | . | , |&lt;br /&gt;
&lt;br /&gt;
Today authors need a workaround: `substr(fixnum(0.5), 1, 1)`, or one `if(LANG == ...)` per language. A thousands separator still needs `if(LANG == ...)`, because it differs by country even for the same decimal mark (German 1.234,50, French 1 234,50).&lt;br /&gt;
&lt;br /&gt;
Required changes:&lt;br /&gt;
&lt;br /&gt;
1. Register `decimalmark` with 0 arguments in the function table ([em_core_helper.php:208](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_core_helper.php#L208&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_core_helper.php#L208&lt;/a&gt;)). PHP returns `,` when `LimeExpressionManager::usingCommaAsRadix()` is true, else `.` (as `exprmgr_fixnum()` does); JS returns `LEMradix`.&lt;br /&gt;
2. Tests: PHPUnit for the result in a dot and a comma language, and after a language switch.&lt;br /&gt;
3. Manual: list it with the other functions, with the `number_format()` example.&lt;br /&gt;
&lt;br /&gt;
## Input: now and after the change&lt;br /&gt;
&lt;br /&gt;
After the change, a numeric field accepts only the decimal mark of the respondent's current survey language, and every question type shows and writes numbers with that mark. Example: survey with base language English (dot) and additional language French (comma). &quot;Auto-fix&quot; is the theme option &quot;Fix automatically numeric value&quot; (default: on).&lt;br /&gt;
&lt;br /&gt;
| Case | Now, auto-fix off | Now, auto-fix on | After the change |&lt;br /&gt;
| --- | --- | --- | --- |&lt;br /&gt;
| French, respondent types `1,1` | Accepted, stored 1.1 | Accepted, stored 1.1 | Accepted, stored 1.1 |&lt;br /&gt;
| French, respondent types `1.1` | Accepted, stored 1.1 | Field changed to `1,1`, stored 1.1 | Rejected: &quot;Only numbers may be entered in this field.&quot; |&lt;br /&gt;
| French, respondent types `1.000` (meant: one thousand) | Accepted, stored **1** | Field changed to `1,000`, stored **1** | Rejected |&lt;br /&gt;
| English, respondent types `1,1` | Rejected | Field changed to `1.1`, stored 1.1 | Rejected |&lt;br /&gt;
| English, respondent types `1,000` (meant: one thousand) | Rejected | Field changed to `1.000`, stored **1** | Rejected |&lt;br /&gt;
| French, multiple numerical answer `1,1` shown again after Previous | `1.1` (base language's mark) | `1.1` | `1,1` |&lt;br /&gt;
| French, multiple numerical slider writes its value | Dot (base language's mark) | Dot | Comma |&lt;br /&gt;
| New additional survey language, e.g. German | Decimal mark: dot | Decimal mark: dot | Decimal mark: comma (the language's default) |&lt;br /&gt;
&lt;br /&gt;
Checked in the browser on 7.12.1, except these, which follow from the code: English `1,000` with auto-fix off, the auto-fix-on column of the multiple numerical row, the slider row (the slider gets the same separator variable as the field, [answer_row.twig:70](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/views/survey/questions/answer/multiplenumeric/rows/sliders/answer_row.twig#L70&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/views/survey/questions/answer/multiplenumeric/rows/sliders/answer_row.twig#L70&lt;/a&gt;)) and the new-language row.&lt;br /&gt;
&lt;br /&gt;
## Input: required changes&lt;br /&gt;
&lt;br /&gt;
1. **All renderers use the current survey language's decimal mark.** Do this first: otherwise the stricter check in step 2 rejects the respondent's own values when a page is shown again, and slider values. These renderers use the base language's mark today and must switch to the current language:&lt;br /&gt;
   - [RenderMultipleNumerical.php:49](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/QuestionTypes/MultipleNumericalQuestion/RenderMultipleNumerical.php#L49&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/QuestionTypes/MultipleNumericalQuestion/RenderMultipleNumerical.php#L49&lt;/a&gt;) (input and slider)&lt;br /&gt;
   - [RenderMultipleShortText.php:45](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/QuestionTypes/MultipleShortText/RenderMultipleShortText.php#L45&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/QuestionTypes/MultipleShortText/RenderMultipleShortText.php#L45&lt;/a&gt;)&lt;br /&gt;
   - [RenderMultipleChoice.php:167](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/QuestionTypes/MultipleChoice/RenderMultipleChoice.php#L167&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/QuestionTypes/MultipleChoice/RenderMultipleChoice.php#L167&lt;/a&gt;)&lt;br /&gt;
   - [RenderMultipleChoiceWithComments.php:178](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/QuestionTypes/MultipleChoiceWithComments/RenderMultipleChoiceWithComments.php#L178&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/QuestionTypes/MultipleChoiceWithComments/RenderMultipleChoiceWithComments.php#L178&lt;/a&gt;)&lt;br /&gt;
   - [RenderListRadio.php:181](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/QuestionTypes/ListRadio/RenderListRadio.php#L181&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/QuestionTypes/ListRadio/RenderListRadio.php#L181&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;
   Best done with one helper that returns the current language's separator, used by every renderer.&lt;br /&gt;
2. **Server: reject the other separator.** In a comma language, a posted value of a numeric variable that contains a dot is invalid. It is treated exactly like a comma in a dot language, which the server already rejects today: the question shows the error and the page is not submitted. Today the comma is replaced by a dot and a dot is let through ([em_manager_helper.php:9293-9298](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_manager_helper.php#L9293-L9298&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_manager_helper.php#L9293-L9298&lt;/a&gt;)). This applies only to values posted by the respondent: values already in the session (hidden questions, URL prefill, default answers, resumed responses) are in dot format and stay valid.&lt;br /&gt;
3. **JS: same rule on the page.** In a comma language, `fixnum_checkconditions()` and `LEMval()` read only the comma as decimal mark, so client-side validation flags `1.1` at once. The same applies in a dot language: only the dot is read, and 1,1 is flagged. The field is never rewritten, because the auto-fix option is removed (see &quot;Input: remove the auto-fix option&quot;) ([em_javascript.js:96-163](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/assets/packages/expressions/em_javascript.js#L96-L163&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/assets/packages/expressions/em_javascript.js#L96-L163&lt;/a&gt;), [:1265-1288](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/assets/packages/expressions/em_javascript.js#L1265-L1288&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/assets/packages/expressions/em_javascript.js#L1265-L1288&lt;/a&gt;)).&lt;br /&gt;
4. **New survey languages get the language's default decimal mark** (`radixpoint` from `getLanguageData()`), like they already get its date format. Three places create the settings row without it: [LanguageConsistency.php:74-91](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/models/services/SurveyAggregateService/LanguageConsistency.php#L74-L91&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/models/services/SurveyAggregateService/LanguageConsistency.php#L74-L91&lt;/a&gt;), [SurveyIntegrity.php:43](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/models/services/SurveyIntegrity.php#L43&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/models/services/SurveyIntegrity.php#L43&lt;/a&gt;), [DataIntegrityChecker.php:1063](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/models/DataIntegrityChecker.php#L1063&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/models/DataIntegrityChecker.php#L1063&lt;/a&gt;). Existing languages are not changed.&lt;br /&gt;
5. **Tests:** PHPUnit for the server check (dot rejected in a comma language, session values untouched) and for the new-language default; a functional test for the French rows of the input table, including a multiple numerical question in an additional language.&lt;br /&gt;
&lt;br /&gt;
## Input: &quot;Numbers only&quot; on text questions&lt;br /&gt;
&lt;br /&gt;
&quot;Numbers only&quot; on Short text, Multiple short text, Array texts and Equation, and &quot;Numbers only for 'Other'&quot;, means: the answer must be a valid number written in the respondent's language format (optional minus, digits, at most one decimal mark of that language). The answer is stored as typed, as text; only the decimal mark is saved as a dot. Leading and trailing zeros stay, so zip codes and IDs like `01234` keep working. Numerical input stays the question type for a real, normalised number.&lt;br /&gt;
&lt;br /&gt;
Short text with &quot;Numbers only&quot;, checked in the browser on 7.12.1:&lt;br /&gt;
&lt;br /&gt;
| Typed | Now, auto-fix off | Now, auto-fix on | After the change |&lt;br /&gt;
| --- | --- | --- | --- |&lt;br /&gt;
| English `01234` | Stored 01234 | Field changed to `1234`, stored 1234 | Stored 01234 |&lt;br /&gt;
| English `007` | Stored 007 | Field changed to `7`, stored 7 | Stored 007 |&lt;br /&gt;
| English `0123.40` | Stored 0123.40 | Field changed to `123.40`, stored 123.40 | Stored 0123.40 |&lt;br /&gt;
| French `0123,40` | Stored 0123.40 | Field changed to `123,40`, stored 123.40 | Stored 0123.40, `.shown` 0123,40 |&lt;br /&gt;
| English `12a` | Rejected | Field changed to `12`, stored 12 | Rejected |&lt;br /&gt;
| English `0123.40`, `{Q00.NAOK}` on the same page | 123.4 | 123.4 | 0123.40 |&lt;br /&gt;
&lt;br /&gt;
Required changes:&lt;br /&gt;
&lt;br /&gt;
1. **JS: no auto-fix for these fields.** `fixnum_checkconditions()` does not rewrite the field: no removed leading or trailing zeros, no removed characters. Invalid input shows the error instead ([em_javascript.js:83-213](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/assets/packages/expressions/em_javascript.js#L83-L213&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/assets/packages/expressions/em_javascript.js#L83-L213&lt;/a&gt;)). This follows from removing the auto-fix option (see the next section).&lt;br /&gt;
2. **JS `.NAOK`:** `LEMval()` returns the typed text for these variables, as PHP does on later pages; today it turns `0123.40` into `123.4` on the same page ([em_javascript.js:1265-1288](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/assets/packages/expressions/em_javascript.js#L1265-L1288&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/assets/packages/expressions/em_javascript.js#L1265-L1288&lt;/a&gt;)). Calculations still treat the text as a number.&lt;br /&gt;
3. **`.shown`:** the typed text with the decimal mark of the current language, without the normalisation used for Numerical input.&lt;br /&gt;
4. **Server:** no change beyond &quot;Input: required changes&quot; step 2; it already stores the text with the decimal mark as a dot ([em_manager_helper.php:9293-9298](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_manager_helper.php#L9293-L9298&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/expressions/em_manager_helper.php#L9293-L9298&lt;/a&gt;)).&lt;br /&gt;
5. **Help texts:** &quot;Numbers only&quot;: &quot;Allow only a number. The answer is kept as typed, including leading zeros.&quot; &quot;Numbers only for 'Other'&quot;: &quot;Allow only a number for 'Other'. The answer is kept as typed, including leading zeros.&quot;&lt;br /&gt;
6. **Tests:** a functional test for the rows of the table above.&lt;br /&gt;
&lt;br /&gt;
## Input: remove the auto-fix option&lt;br /&gt;
&lt;br /&gt;
Decision: remove the theme option &quot;Fix automatically numeric value&quot; and the two config settings behind it. Numeric fields are then never rewritten while the respondent types; invalid input always gets the error, and the respondent corrects it.&lt;br /&gt;
&lt;br /&gt;
Today the option decides whether an answer is accepted and what is stored. It is a theme option with three settings, default &quot;Yes&quot; ([head.twig:72-75](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/themes/survey/fruity_twentythree/views/subviews/header/head.twig#L72-L75&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/themes/survey/fruity_twentythree/views/subviews/header/head.twig#L72-L75&lt;/a&gt;)); themes without it fall back to `bFixNumAuto` and `bNumRealValue` in [config-defaults.php:807-810](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/config/config-defaults.php#L807-L810&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/config/config-defaults.php#L807-L810&lt;/a&gt;), which behave like &quot;Yes&quot;.&lt;br /&gt;
&lt;br /&gt;
Numerical input, English, checked in the browser on 7.12.1:&lt;br /&gt;
&lt;br /&gt;
| Typed | Now, &quot;Yes&quot; (default) | Now, &quot;For expression&quot; or &quot;No&quot; | After the change |&lt;br /&gt;
| --- | --- | --- | --- |&lt;br /&gt;
| `12a` | Field changed to `12`, stored 12 | Rejected | Rejected |&lt;br /&gt;
| `12 €` | Field changed to `12`, stored 12 | Rejected | Rejected |&lt;br /&gt;
| `007` | Field changed to `7` | Kept as typed | Kept as typed |&lt;br /&gt;
&lt;br /&gt;
Why remove it:&lt;br /&gt;
&lt;br /&gt;
- Whether an answer is accepted, and what is stored, should not depend on the survey theme.&lt;br /&gt;
- Silent changes are worse than an error: the respondent does not see that `12 €` became 12, or that `1.000` became 1, and never confirms the stored value.&lt;br /&gt;
- After this spec, the option has almost nothing left to do: it no longer swaps separators and no longer touches &quot;Numbers only&quot; text answers. For Numerical input it would only remove characters and trim zeros.&lt;br /&gt;
- One less setting to explain in the theme options, the config and the manual.&lt;br /&gt;
&lt;br /&gt;
Required changes:&lt;br /&gt;
&lt;br /&gt;
1. Remove `fixnumauto` from the `config.xml` of the four core themes (fruity\_twentythree, fruity, vanilla, bootswatch), from the default theme settings ([LsDefaultDataSets.php:868-917](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/LsDefaultDataSets.php#L868-L917&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/LsDefaultDataSets.php#L868-L917&lt;/a&gt;)) and the header code that sets the JS flags (head.twig in fruity\_twentythree and vanilla). Values saved in existing theme settings and custom themes are ignored.&lt;br /&gt;
2. Remove `bFixNumAuto` and `bNumRealValue` from [config-defaults.php:807-810](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/config/config-defaults.php#L807-L810&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/config/config-defaults.php#L807-L810&lt;/a&gt;) and [SurveyRuntimeHelper.php:1575-1576](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/SurveyRuntimeHelper.php#L1575-L1576&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/SurveyRuntimeHelper.php#L1575-L1576&lt;/a&gt;).&lt;br /&gt;
3. JS: remove the auto-fix code in `fixnum_checkconditions()` and the `bNumRealValue` checks ([em_javascript.js:101-200](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/assets/packages/expressions/em_javascript.js#L101-L200&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/assets/packages/expressions/em_javascript.js#L101-L200&lt;/a&gt;), [:1285](&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/master/assets/packages/expressions/em_javascript.js#L1285&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/master/assets/packages/expressions/em_javascript.js#L1285&lt;/a&gt;)). The field keeps what the respondent typed. In expressions, a valid entry gives its value; an invalid entry gives an empty `.NAOK` (today's default) and the typed text in `.shown` (see Decisions).&lt;br /&gt;
4. Manual and release note: the option is gone; invalid numbers now always show an error.&lt;br /&gt;
5. Tests: a functional test that invalid input is never rewritten and shows the error.&lt;br /&gt;
&lt;br /&gt;
## Breaking changes&lt;br /&gt;
&lt;br /&gt;
Output changes affect only surveys with a comma language. The first three rows change only on the question's own page; on later pages they already show a dot today. Because this changes visible output in existing surveys, the change targets develop-major.&lt;br /&gt;
&lt;br /&gt;
| What authors see | Before | After | How to keep the comma |&lt;br /&gt;
| --- | --- | --- | --- |&lt;br /&gt;
| `{Q00}` or `{Q00.NAOK}` in text on the same page | 1,1 | 1.1 | Use `{Q00.shown}` |&lt;br /&gt;
| Computed number in text on the same page, e.g. `{Q00.NAOK * 2}` | 2,2 | 2.2 | Wrap it: `{fixnum(Q00.NAOK * 2)}` |&lt;br /&gt;
| Equation question that shows a computed amount | 2,2 | 2.2 | Wrap the equation's displayed part in `fixnum()` |&lt;br /&gt;
| `{Q00.shown}` on later pages | 1.1 | 1,1 | No action; this is the fix |&lt;br /&gt;
&lt;br /&gt;
Input side:&lt;br /&gt;
&lt;br /&gt;
| What respondents see | Before | After |&lt;br /&gt;
| --- | --- | --- |&lt;br /&gt;
| Comma language: typing a dot, e.g. `1.1` | Accepted, or silently changed to `1,1` | Error &quot;Only numbers may be entered in this field.&quot; |&lt;br /&gt;
| Multiple numerical value or slider in an additional comma language | Dot | Comma |&lt;br /&gt;
| Dot language with auto-fix on: typing a comma, e.g. 1,1 | Silently changed to 1.1 | Error &quot;Only numbers may be entered in this field.&quot; |&lt;br /&gt;
| Text question with &quot;Numbers only&quot;, auto-fix on: typing 01234 | Changed to 1234 | Kept as 01234 |&lt;br /&gt;
| Text question with &quot;Numbers only&quot;, auto-fix on: typing 12a | Silently changed to 12 | Error &quot;Only numbers may be entered in this field.&quot; |&lt;br /&gt;
| Numerical input with the default theme setting: typing 12a or 12 € | Silently changed to 12 | Error &quot;Only numbers may be entered in this field.&quot; |&lt;br /&gt;
&lt;br /&gt;
Custom JavaScript in a survey theme or question that writes dot numbers into numeric fields of a comma language will now produce an error. The input change also reaches dot-language surveys: auto-fix is on by default, so respondents who type a comma there now see an error instead of a silent correction. Likelihood of support questions: moderate.&lt;br /&gt;
&lt;br /&gt;
Risk: likelihood is moderate for comma-language surveys that show computed amounts with equation questions, because this is a common pattern. Nothing changes in stored data, exports, URLs, relevance or validation.&lt;br /&gt;
&lt;br /&gt;
Release note draft:&lt;br /&gt;
&lt;br /&gt;
&gt; **ExpressionScript: decimal mark in output.** Values such as `{Q1}` and `{Q1.NAOK}` and calculation results now always use a dot, on every page. To show a number with the survey language's decimal mark, use `{Q1.shown}` for answers or `{fixnum(...)}` for calculations. Before, the comma appeared only on the question's own page. Numeric answers now accept only the decimal mark of the respondent's survey language: a dot is no longer accepted in a language with a comma, and a comma is no longer accepted in a language with a dot, also when automatic number fixing is on. The theme option &quot;Fix automatically numeric value&quot; is removed: numbers are no longer changed while typing, and invalid input always shows an error.&lt;br /&gt;
&lt;br /&gt;
## Decisions&lt;br /&gt;
&lt;br /&gt;
| Question | Decision |&lt;br /&gt;
| --- | --- |&lt;br /&gt;
| `{Q00.shown}` in an end URL, quota URL or email template now gets a comma in comma languages | Accepted. Likelihood is very low. |&lt;br /&gt;
| Global setting to keep the old same-page `LEMfixnum()` wrap for one major version | No. |&lt;br /&gt;
| Should `fixnum()` also strip trailing zeros like `.shown`? | No. `fixnum()` only swaps the separator (`fixnum(1.50)` → `1,50`). |&lt;br /&gt;
| `.shown` of a numeric variable that holds a non-numeric value (e.g. after a failed validation) | `.shown` returns it unchanged. |&lt;br /&gt;
| A dot typed in a comma language | Not accepted. |&lt;br /&gt;
| A comma typed in a dot language, also with auto-fix on | Not accepted. Auto-fix no longer swaps separators. |&lt;br /&gt;
| Decimal mark used by renderers | Always the current survey language's mark. |&lt;br /&gt;
| Decimal mark of a newly added survey language | The language's default from the language data. |&lt;br /&gt;
| Thousands separators (e.g. 1.000 in a comma language, 1,000 in a dot language): strip and accept them? | No. They are rejected like any other wrong separator, because 1.500 could mean 1500 or 1.5. |&lt;br /&gt;
| Function to format a number with a fixed number of decimals | number_format() accepts 1 to 4 arguments, with the same result in PHP and JS. |&lt;br /&gt;
| How do authors get the current language's decimal mark in an expression? | New function decimalmark(). A function instead of a reserved variable, because a variable could clash with an existing question code. |&lt;br /&gt;
| What does &quot;Numbers only&quot; mean on text questions (e.g. a zip code with leading zeros)? | A valid number in the language's format, kept as typed (leading zeros stay); only the decimal mark is stored as a dot. Auto-fix does not change these answers. |&lt;br /&gt;
| Keep the theme option &quot;Fix automatically numeric value&quot;? | No. It is removed (see &quot;Input: remove the auto-fix option&quot;). |]]></description><category>Expression Manager</category><pubDate>Sat, 28 Nov 2026 11:40:37 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20898</guid><comments>https://bugs.limesurvey.org/view.php?id=20898#bugnotes</comments></item><item><title>20897: Survey, group and question export lose and duplicate question attributes on PostgreSQL (no ORDER BY in chunked query)</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20897</link><description><![CDATA[On PostgreSQL, the LSS export of a survey with more than 1,000 question attribute rows is wrong. Some attribute rows are in the export twice, and the same number of other rows are missing, so the total row count looks correct. The export imports without any error, but the imported survey has lost the missing attributes (for example cssclass, hidden, validation settings). Which rows are lost changes from one export to the next.&lt;br /&gt;
&lt;br /&gt;
In our installation, 6 large surveys (about 2,000 to 5,000 attribute rows each) lost between 500 and 1,200 attribute rows each in every LSS export. The LSG and LSQ exports use the same query and have the same problem.&lt;br /&gt;
&lt;br /&gt;
This is the same kind of bug as &lt;a href=&quot;https://bugs.limesurvey.org/view.php?id=20397&quot;&gt;20397&lt;/a&gt;. The fix for &lt;a href=&quot;https://bugs.limesurvey.org/view.php?id=20397&quot;&gt;20397&lt;/a&gt; (commit 352fa9060f964a4bd78c92b6768e3c99f801fc12) added an ORDER BY to the answer and l10n queries, but not to the question attribute queries.&lt;br /&gt;
&lt;br /&gt;
Cause&lt;br /&gt;
&lt;br /&gt;
buildXMLFromQuery() reads the result in chunks of 1,000 rows with LIMIT/OFFSET:&lt;br /&gt;
&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/eb326311a4c1c386b24384b77226560db2a3c5fc/application/helpers/export_helper.php#L777-L779&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/eb326311a4c1c386b24384b77226560db2a3c5fc/application/helpers/export_helper.php#L777-L779&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/eb326311a4c1c386b24384b77226560db2a3c5fc/application/helpers/export_helper.php#L813-L818&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/eb326311a4c1c386b24384b77226560db2a3c5fc/application/helpers/export_helper.php#L813-L818&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The question attribute queries use GROUP BY but no ORDER BY:&lt;br /&gt;
- survey export: &lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/eb326311a4c1c386b24384b77226560db2a3c5fc/application/helpers/export_helper.php#L972-L985&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/eb326311a4c1c386b24384b77226560db2a3c5fc/application/helpers/export_helper.php#L972-L985&lt;/a&gt;&lt;br /&gt;
- group export: &lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/eb326311a4c1c386b24384b77226560db2a3c5fc/application/helpers/export_helper.php#L2244-L2261&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/eb326311a4c1c386b24384b77226560db2a3c5fc/application/helpers/export_helper.php#L2244-L2261&lt;/a&gt;&lt;br /&gt;
- question export: &lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/eb326311a4c1c386b24384b77226560db2a3c5fc/application/helpers/export_helper.php#L2378-L2394&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/eb326311a4c1c386b24384b77226560db2a3c5fc/application/helpers/export_helper.php#L2378-L2394&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Without ORDER BY, PostgreSQL does not keep the same row order between the chunk queries. With GROUP BY it often uses a hash aggregate, so the order changes and the chunks overlap and leave gaps. MariaDB and MySQL up to 5.7 sort GROUP BY results, so the bug usually does not show there. MySQL 8 no longer guarantees this order either.&lt;br /&gt;
&lt;br /&gt;
The two SELECT DISTINCT conditions queries have no ORDER BY either:&lt;br /&gt;
&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/eb326311a4c1c386b24384b77226560db2a3c5fc/application/helpers/export_helper.php#L914-L920&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/eb326311a4c1c386b24384b77226560db2a3c5fc/application/helpers/export_helper.php#L914-L920&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Suggested fix&lt;br /&gt;
&lt;br /&gt;
Add a fixed and unique order to these queries, as the &lt;a href=&quot;https://bugs.limesurvey.org/view.php?id=20397&quot;&gt;20397&lt;/a&gt; fix did (&lt;a href=&quot;https://github.com/LimeSurvey/LimeSurvey/blob/eb326311a4c1c386b24384b77226560db2a3c5fc/application/helpers/export_helper.php#L889-L905&quot; rel=&quot;noopener,nofollow&quot;&gt;https://github.com/LimeSurvey/LimeSurvey/blob/eb326311a4c1c386b24384b77226560db2a3c5fc/application/helpers/export_helper.php#L889-L905&lt;/a&gt;):&lt;br /&gt;
- question attributes: ORDER BY qa.qid, qa.attribute, qa.language, qa.value (on MSSQL with cast(qa.value as varchar(4000)), because value is a text column)&lt;br /&gt;
- conditions: ORDER BY cid&lt;br /&gt;
&lt;br /&gt;
We run this patch on our LimeSurvey 7.12.1 installation. After it, all exports have every attribute row exactly once. I can open a pull request with this fix.]]></description><category>Import/Export</category><pubDate>Wed, 25 Nov 2026 17:21:33 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20897</guid><comments>https://bugs.limesurvey.org/view.php?id=20897#bugnotes</comments></item><item><title>20896: LimeSurvey bug report: changing "Theme color" in the new editor removes the variation CSS</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20896</link><description><![CDATA[## Description&lt;br /&gt;
&lt;br /&gt;
When the theme color (the `cssframework` option, e.g. Apple → Blueberry) of a survey using **fruity_twentythree** is changed in the **new editor**, the survey-level `files_css` value is saved with an empty entry instead of the new variation file:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
before: {&quot;add&quot;:[&quot;css/variations/theme_apple.css&quot;,&quot;css/base.css&quot;,&quot;css/custom.css&quot;], &quot;remove&quot;:[...]}&lt;br /&gt;
after:  {&quot;add&quot;:[&quot;&quot;,&quot;css/base.css&quot;,&quot;css/custom.css&quot;], &quot;remove&quot;:[...]}&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
The survey page then outputs `&lt;link rel=&quot;stylesheet&quot; href=&quot;/tmp/assets/&lt;hash&gt;/&quot;&gt;`, which points to the asset directory instead of a CSS file, and has no variation stylesheet. The theme layout breaks: for example, a brand logo is shown at its full natural size and the page scrolls sideways. Every further color change keeps the survey broken.&lt;br /&gt;
&lt;br /&gt;
## Steps to reproduce&lt;br /&gt;
&lt;br /&gt;
1. Create (or import) a survey using the theme **fruity_twentythree**. The default color &quot;Apple&quot; is fine.&lt;br /&gt;
2. Open the survey in the **new editor** → survey settings → theme options.&lt;br /&gt;
3. Change **Theme color** to another value, e.g. &quot;Blueberry&quot;.&lt;br /&gt;
4. Open the survey preview (`/index.php/&lt;sid&gt;?newtest=Y`).&lt;br /&gt;
5. Check the database:&lt;br /&gt;
   `SELECT files_css FROM lime_template_configuration WHERE sid = &lt;sid&gt;;`&lt;br /&gt;
&lt;br /&gt;
## Expected result&lt;br /&gt;
&lt;br /&gt;
`files_css` contains `css/variations/theme_blueberry.css` in place of `css/variations/theme_apple.css`, and the survey renders with the Blueberry color.&lt;br /&gt;
&lt;br /&gt;
## Actual result&lt;br /&gt;
&lt;br /&gt;
`files_css` contains `&quot;&quot;` in place of the variation file. The variation stylesheet is missing from the page and the layout is broken.&lt;br /&gt;
&lt;br /&gt;
## Root cause analysis&lt;br /&gt;
&lt;br /&gt;
`LimeSurvey\Models\Services\SurveyThemeConfiguration::updateThemeOption()` translates the old and the new option value into file names and does a string replace:&lt;br /&gt;
&lt;br /&gt;
```php&lt;br /&gt;
// application/models/services/SurveyThemeConfiguration.php (~line 148)&lt;br /&gt;
$oldFileValue = $this-&gt;getOptionAttributeDataValue($surveyId, $props['templateName'], $oPreviousOptions-&gt;$key, $key);&lt;br /&gt;
$newFileValue = $this-&gt;getOptionAttributeDataValue($surveyId, $props['templateName'], $value, $key);&lt;br /&gt;
...&lt;br /&gt;
$attributes[$attributeKey] = str_replace($oldFileValue, $newFileValue, $attributeInherited);&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
`getOptionAttributeDataValue()` calls `Template::model()-&gt;getInstance($sTemplateName, $iSurveyId)` and reads the dropdown options from `$oTemplate-&gt;path`. **Only the first call in a request returns a usable instance**. Every later call returns an instance with `path = ''`, so `TemplateManifest::getOptionAttributes('')` finds no dropdown options and the method returns `''`. As a result, `$oldFileValue` resolves correctly and `$newFileValue` is empty.&lt;br /&gt;
&lt;br /&gt;
Why the second `Template::getInstance()` returns an unprepared instance (`application/models/Template.php`, ~line 597):&lt;br /&gt;
&lt;br /&gt;
```php&lt;br /&gt;
} elseif (&lt;br /&gt;
    !self::$instance instanceof TemplateManifest&lt;br /&gt;
    &amp;&amp; !(self::$instance-&gt;sid === $iSurveyId &amp;&amp; self::$instance-&gt;gsid === $iSurveyGroupId)&lt;br /&gt;
) {&lt;br /&gt;
    $getNewInstance = true;&lt;br /&gt;
}&lt;br /&gt;
...&lt;br /&gt;
if ($getNewInstance) {&lt;br /&gt;
    self::$instance = self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML);&lt;br /&gt;
    self::$instance-&gt;prepareTemplateRendering($sTemplateName, $iSurveyId);   // return value ignored&lt;br /&gt;
}&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
1. `self::$instance-&gt;sid` is loaded from the database as a **string** (`'195951'`), while `$iSurveyId` is an **int** (`195951`). The strict `===` comparison is never true, so every call creates a new instance.&lt;br /&gt;
2. `TemplateConfiguration::prepareTemplateRendering()` caches the prepared object in `self::$aPreparedToRender[$sTemplateName][$iSurveyId]`. On the second call it **returns the cached object** without preparing `$this`.&lt;br /&gt;
3. `getInstance()` ignores that return value and keeps the new, unprepared object, whose `path` is empty.&lt;br /&gt;
&lt;br /&gt;
Trace (repeated `Template::model()-&gt;getInstance('fruity_twentythree', 195951)` in one request):&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
call 1: class=TemplateConfiguration sid='195951'(string) path='/var/www/html/themes/survey/fruity_twentythree/'&lt;br /&gt;
call 2: class=TemplateConfiguration sid='195951'(string) path=''&lt;br /&gt;
call 3: class=TemplateConfiguration sid='195951'(string) path=''&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
and `getOptionAttributeDataValue()` called for several values in one request:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
mango     =&gt; &quot;css/variations/theme_mango.css&quot;   (first call)&lt;br /&gt;
apple     =&gt; &quot;&quot;&lt;br /&gt;
blueberry =&gt; &quot;&quot;&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
## Suggested fix&lt;br /&gt;
&lt;br /&gt;
Fix 1 was tested on 7.12.0: with it applied, every lookup resolves and a color change writes the correct variation file. Fix 2 is an extra safeguard:&lt;br /&gt;
&lt;br /&gt;
1. In `Template::getInstance()`, use the prepared instance:&lt;br /&gt;
   ```php&lt;br /&gt;
   self::$instance = self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML)&lt;br /&gt;
       -&gt;prepareTemplateRendering($sTemplateName, $iSurveyId);&lt;br /&gt;
   ```&lt;br /&gt;
   and/or compare the survey IDs without the type mismatch (`(int) self::$instance-&gt;sid === (int) $iSurveyId`).&lt;br /&gt;
2. Defensive: in `SurveyThemeConfiguration::updateThemeOption()`, do not run the `str_replace()` when `$oldFileValue` or `$newFileValue` is empty, so a failed lookup can't corrupt `files_css`.]]></description><category>Theme editor</category><pubDate>Mon, 30 Nov 2026 14:09:03 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20896</guid><comments>https://bugs.limesurvey.org/view.php?id=20896#bugnotes</comments></item><item><title>20894: Incorrectly implemented and irrelevant status messages :  Error messages</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20894</link><description><![CDATA[Error messages are wrapped in containers with the `role=&quot;alert&quot;` attribute, which is not appropriate in this context.&lt;br /&gt;
&lt;br /&gt;
The `role=&quot;alert&quot;` attribute is not correctly implemented because the error messages and their associated role are injected into the DOM simultaneously. As a result, screen readers may not announce the messages reliably.&lt;br /&gt;
&lt;br /&gt;
Furthermore, announcing all error messages together in a single block makes it difficult for users to identify which form fields are affected.&lt;br /&gt;
&lt;br /&gt;
Additionally, grouping all error messages into a single alert makes it difficult to associate each error with its corresponding form field.]]></description><category>Accessibility</category><pubDate>Tue, 24 Nov 2026 18:05:20 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20894</guid><comments>https://bugs.limesurvey.org/view.php?id=20894#bugnotes</comments></item><item><title>20893: Language names in the language changer are not marked with their language (WCAG 3.1.2)</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20893</link><description><![CDATA[The language changer shows each language as `nativedescription - description`, for example &quot;Français - French&quot; on an English page (see `getLanguageChangerLabel()` in `application/helpers/frontend_helper.php`). The native name has no `lang` attribute. A screen reader therefore reads &quot;Français&quot;, &quot;Deutsch (Du)&quot; or &quot;简体中文&quot; with the voice and pronunciation rules of the page language. The name can be garbled or not read at all, so the respondent can't find their own language.&lt;br /&gt;
&lt;br /&gt;
Right-to-left native names, such as Arabic or Hebrew, also lack `dir` when they are shown on a left-to-right page.]]></description><category>Accessibility</category><pubDate>Thu, 26 Nov 2026 11:40:55 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20893</guid><comments>https://bugs.limesurvey.org/view.php?id=20893#bugnotes</comments></item><item><title>20892: New editor Statistics fails on SQL Server: COUNT field incorrect (named parameter :language used twice)</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20892</link><description><![CDATA[On SQL Server (pdo_sqlsrv), the new editor's Statistics page (/editor/#/responses/&lt;sid&gt;/results/statistics) never shows charts. It shows &quot;No responses or compatible data available to display statistics.&quot; and a red error toast. This happens even when the survey has completed responses.&lt;br /&gt;
&lt;br /&gt;
Environment&lt;br /&gt;
- LimeSurvey 7.10.0 (Docker image martialblog/limesurvey:7.10.0-261119-apache). Current master has the same code.&lt;br /&gt;
- Microsoft SQL Server 2022&lt;br /&gt;
- PHP pdo_sqlsrv 5.13.3, ODBC Driver 18&lt;br /&gt;
&lt;br /&gt;
Steps to reproduce&lt;br /&gt;
1. Install LimeSurvey with an MSSQL database.&lt;br /&gt;
2. Create a survey with a list (radio) question and a 5-point question, then activate it.&lt;br /&gt;
3. Complete the survey once, so there is one full response.&lt;br /&gt;
4. Open the new editor, then Results, then Statistics.&lt;br /&gt;
&lt;br /&gt;
Expected: charts for each question.&lt;br /&gt;
&lt;br /&gt;
Actual: the &quot;No responses or compatible data available...&quot; message, and this error:&lt;br /&gt;
&lt;br /&gt;
CDbCommand failed to execute the SQL statement: SQLSTATE[07002]:&lt;br /&gt;
[Microsoft][ODBC Driver 18 for SQL Server]COUNT field incorrect or syntax error.&lt;br /&gt;
The SQL statement executed was: SELECT [q].[qid], ... FROM [lime_questions] [q]&lt;br /&gt;
LEFT JOIN [lime_groups] [g] ON q.gid = g.gid&lt;br /&gt;
LEFT JOIN [lime_question_l10ns] [ql] ON q.qid = ql.qid AND ql.language = :language&lt;br /&gt;
LEFT JOIN [lime_answers] [a] ON q.qid = a.qid&lt;br /&gt;
LEFT JOIN [lime_answer_l10ns] [al] ON a.aid = al.aid AND al.language = :language&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
The classic statistics API (export_statistics, get_summary) works for the same survey.&lt;br /&gt;
&lt;br /&gt;
Cause&lt;br /&gt;
&lt;br /&gt;
QuestionStatistics::buildBaseQuery() uses the named placeholder :language twice, once in each of the two joins, and binds it once. pdo_sqlsrv doesn't support reusing a named placeholder, so the parameter count doesn't match. MySQL and PostgreSQL accept it.&lt;br /&gt;
&lt;br /&gt;
application/models/services/SurveyStatistics/Charts/Questions/QuestionStatistics.php: the joins are at lines 419 and 421 in 7.10.0 and the binding is at line 428. On current master they are at lines 473, 475 and 482.&lt;br /&gt;
&lt;br /&gt;
Fix&lt;br /&gt;
&lt;br /&gt;
Use a separate placeholder for each use and bind both:&lt;br /&gt;
&lt;br /&gt;
-&gt;leftJoin('{{question_l10ns}} ql', 'q.qid = ql.qid AND ql.language = :language')&lt;br /&gt;
...&lt;br /&gt;
-&gt;leftJoin('{{answer_l10ns}} al', 'a.aid = al.aid AND al.language = :language_al')&lt;br /&gt;
...&lt;br /&gt;
$command-&gt;params = [&lt;br /&gt;
    ':sid' =&gt; $this-&gt;surveyId,&lt;br /&gt;
    ':language' =&gt; $this-&gt;language,&lt;br /&gt;
    ':language_al' =&gt; $this-&gt;language,&lt;br /&gt;
];&lt;br /&gt;
&lt;br /&gt;
With this change, both charts render correctly on SQL Server 2022 (checked on 7.10.0). Other queries in the new statistics and responses code may reuse a named placeholder in the same way, so they're worth checking too.]]></description><category>Statistics</category><pubDate>Thu, 26 Nov 2026 10:59:25 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20892</guid><comments>https://bugs.limesurvey.org/view.php?id=20892#bugnotes</comments></item><item><title>20888: List (Radio): screen readers repeat the full question text on every answer option</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20888</link><description><![CDATA[When respondents move through the options of a List (Radio) question with a screen reader, the full question text is read before every single option. With 7 options, the question is read 7 times, which makes long questionnaires very tiring for screen reader users. A LimeSurvey Cloud customer reported this with NVDA (Windows) and VoiceOver (iOS), and I reproduced it.&lt;br /&gt;
&lt;br /&gt;
Cause: the radiogroup wrapper in application/views/survey/questions/answer/listradio/answer.twig is already labelled by the question text:&lt;br /&gt;
&lt;ul role=&quot;radiogroup&quot; aria-labelledby=&quot;ls-question-text-{{ name }}&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
In addition, each radio input references the question text again in its own aria-labelledby, for example in listradio/rows/answer_row.twig:&lt;br /&gt;
aria-labelledby=&quot;ls-question-text-{{ name }} answer-label-{{ name }}{{ code }}&quot;&lt;br /&gt;
&lt;br /&gt;
So the question text becomes part of every option's accessible name.]]></description><category>Survey taking</category><pubDate>Fri, 27 Nov 2026 16:58:37 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20888</guid><comments>https://bugs.limesurvey.org/view.php?id=20888#bugnotes</comments></item><item><title>20885: Publicly generated PDF documents are not accessible (missing PDF tags)</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20885</link><description><![CDATA[PDF documents generated by LimeSurvey for public users are not properly tagged and are therefore not accessible to screen readers.]]></description><category>Accessibility</category><pubDate>Mon, 23 Nov 2026 13:43:23 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20885</guid><comments>https://bugs.limesurvey.org/view.php?id=20885#bugnotes</comments></item><item><title>20884: CSV import with "overwrite" saves encrypted participant attributes unencrypted</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20884</link><description><![CDATA[When a CSV import into the central participant database updates participants that already exist (with the overwrite option on), the values of encrypted attributes are saved without encryption. Afterwards these values show up empty or garbled for those participants. Importing new participants encrypts the values correctly.&lt;br /&gt;
&lt;br /&gt;
The overwrite branch in ParticipantsAction::uploadCSV() passes the mapped values to updateParticipantAttributeValue() without calling encrypt(), unlike the branch for new participants.]]></description><category>Encryption</category><pubDate>Thu, 26 Nov 2026 11:45:44 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20884</guid><comments>https://bugs.limesurvey.org/view.php?id=20884#bugnotes</comments></item><item><title>20882: Survey themes: no way to provide their own translations (public side and theme options)</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20882</link><description><![CDATA[A survey theme can only use the LimeSurvey core translations:&lt;br /&gt;
- in the Twig views (public side, shown to respondents): `gT()` and `ngT()` only look in the core translation files;&lt;br /&gt;
- in the theme options (admin side): `title`, and the texts of `&lt;dropdownoptions&gt;` (`TemplateManifest::translateDropdownOptions()`), are translated with the core `gT()` too.&lt;br /&gt;
- in DB manually&lt;br /&gt;
&lt;br /&gt;
A text that is not in the core translation files is always shown in the language it is written in. A theme cannot add a new text for respondents, or a label for one of its own options, that follows the survey language or the admin language.&lt;br /&gt;
&lt;br /&gt;
Plugins already have this: each plugin can provide its own translation files in `locale/` (`PluginBase::gT()` uses a message source per plugin, `&lt;PluginName&gt;Messages`).]]></description><category>Theme editor</category><pubDate>Fri, 20 Nov 2026 19:24:29 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20882</guid><comments>https://bugs.limesurvey.org/view.php?id=20882#bugnotes</comments></item><item><title>20881: Survey theme options: no way to show a help text for an option</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20881</link><description><![CDATA[Theme options declared in `config.xml` can only have a `title`, which `application/views/themeOptions/options_core.php` shows as the label: `gT($attribute['title'])`. There is no attribute for a help text or description shown under the field.&lt;br /&gt;
&lt;br /&gt;
Some options need an explanation that does not fit in a label, for example:&lt;br /&gt;
- what an empty value means: an empty alternative text for a logo makes the logo decorative;&lt;br /&gt;
- what the `inherit` keyword means for `text` options at survey or survey group level (see the bug report about `text` options showing &quot;inherit&quot;);&lt;br /&gt;
- the expected format or unit of a value.&lt;br /&gt;
&lt;br /&gt;
Today the theme developer can only:&lt;br /&gt;
- write a longer `title`, which makes a bad label;&lt;br /&gt;
- add an XML comment in `config.xml`, which the admin user never sees.]]></description><category>Theme editor</category><pubDate>Fri, 20 Nov 2026 19:19:36 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20881</guid><comments>https://bugs.limesurvey.org/view.php?id=20881#bugnotes</comments></item><item><title>20880: Survey theme options: text options show the raw value "inherit" at survey / survey group level</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20880</link><description><![CDATA[In the theme options at survey level or survey group level, a theme option of type text that inherits its value shows the literal word inherit in its input. The admin user does not see the value that will actually be used. The user has to type over or delete &quot;inherit&quot; to set a value, and nothing explains that this word is a keyword. The admin then has to know the exact keyword inherit to restore inheritance later.&lt;br /&gt;
&lt;br /&gt;
The color picker options already work around this: the field stays empty and the inherited value is shown as a placeholder (getOptionFieldValue / applyColorPickerValue in assets/packages/themeoptions-core/themeoptions-core.js). This cannot be reused for text options, because an empty text can be a meaningful value. Example: an empty alternative text for a logo, which makes the logo decorative.]]></description><category>Theme editor</category><pubDate>Fri, 20 Nov 2026 19:16:33 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20880</guid><comments>https://bugs.limesurvey.org/view.php?id=20880#bugnotes</comments></item><item><title>20879: Participant table: Store invitation, reminder and completion as datetime columns with a separate status field</title><author></author><link>https://bugs.limesurvey.org/view.php?id=20879</link><description><![CDATA[The participant table stores `sent`, `remindersent` and `completed` as `string(17)`. Each column mixes a flag and a date: 'N', 'Y', 'Q' (`completed` only, ended by quota) or a date written as 'Y-m-d H:i' without seconds. Code has to check `!= 'N'` everywhere, and the reminder selection compares dates as strings.&lt;br /&gt;
&lt;br /&gt;
Proposed redesign (from the discussion in &lt;a href=&quot;https://bugs.limesurvey.org/view.php?id=5374&quot;&gt;05374&lt;/a&gt;):&lt;br /&gt;
- Rename `sent` to `invitation_sent` and make it a datetime; NULL means no invitation was sent.&lt;br /&gt;
- Rename `remindersent` to `last_reminder_sent` and make it a datetime; NULL means no reminder was sent.&lt;br /&gt;
- Make `completed` a datetime, set only if the survey is not anonymized.&lt;br /&gt;
- Add a status column for the completion state, so the state is no longer stored in the date column.&lt;br /&gt;
&lt;br /&gt;
Open questions:&lt;br /&gt;
- Status values: one-letter codes (N/Y/Q) or descriptive strings (not started, in progress, completed, quota, opted out)?&lt;br /&gt;
- Should the completion date stay in the participant table at all, since the response already has it?&lt;br /&gt;
- How to migrate rows that hold 'Y' without a date (an admin can set this by hand for `sent` and `remindersent`)?&lt;br /&gt;
&lt;br /&gt;
Affected areas:&lt;br /&gt;
- `Token` and `TokenDynamic` models, including the summary counts&lt;br /&gt;
- `Tokens` controller (invitation and reminder sending, reminder selection), `token_helper`, `DataEntry`, `RegisterController`, `frontend_helper` (token completion on submit)&lt;br /&gt;
- Participant edit form and mass update views&lt;br /&gt;
- RemoteControl participant functions (field names change)&lt;br /&gt;
- Participant CSV export/import and survey archives (old files must still import)&lt;br /&gt;
- CPDB `survey_links` (`date_invited`, `date_completed`)&lt;br /&gt;
&lt;br /&gt;
Migration: the DB update has to alter every existing participant table, so it must work on installations with many and very large tables. Column renames break plugins and scripts that read the table directly, so this is a breaking change for develop-major and needs a changelog entry.]]></description><category>Survey participants (Tokens)</category><pubDate>Fri, 20 Nov 2026 17:36:44 +0100</pubDate><guid>https://bugs.limesurvey.org/view.php?id=20879</guid><comments>https://bugs.limesurvey.org/view.php?id=20879#bugnotes</comments></item></channel></rss>
