View Issue Details

This issue affects 2 person(s).
 16
IDProjectCategoryView StatusLast Update
20432Bug reportsInstallationpublic2026-02-25 09:12
Reporterdan24 Assigned Togabrieljenik  
PrioritynoneSeverityminor 
Status resolvedResolutionfixed 
Product Version6.12.x 
Summary20432: Update to V6.14 from V3.27
Description

In version 6.14, showgroupinfo and showqnumcode are no longer in the general settings, but the values ​​are still in the database. Therefore, if you want to "hide both," it is no longer possible to display them in v6.14. The code in application/helpersSurveyRuntimeHelper.php still uses: $showqnumcodeglobal = getGlobalSetting('showqnumcode');

Steps To Reproduce

Steps to reproduce

use a version where showgroupinfo and showqnumcode are in the general settings, choose "hide both,".
Update in V6.14
In the "Presentation" section of a survey, regardless of the choices made in "group name and description" and "question number and code", these will never be displayed.

Expected result

if select "Display only the name of group", it should be displayed

Actual result

Never display , The result depends on the previous settings made in the general settings. only OK if it's "choose"

(Write here what happened instead)

TagsNo tags attached.
Bug heat16
Complete LimeSurvey version number (& build)6.14.2+250610
I will donate to the project if issue is resolvedNo
Browserfirefox, edge, ..
Database type & versionMariadb
Server OS (if known)Nginx
Webserver software & version (if known)
PHP Version7.4

Relationships

related to 18450 confirmed Deprecated global settings still used 

Users monitoring this issue

dan24

Activities

dan24

dan24

2026-02-20 11:52

reporter   ~84255

if that can help, here modification of application/helpers# vi SurveyRuntimeHelper.php
line 444 :
//Redbug 9811 suppression de l'interaction de la globalSettings $showqnumcodeglobal
// $showgroupinfoglobal = getGlobalSetting('showgroupinfo');
$aSurveyinfo = getSurveyInfo($this->iSurveyid, App()->getLanguage());

        // Look up if there is a global Setting to hide/show the Questiongroup => In that case Globals will override Local Settings

// if (($aSurveyinfo['showgroupinfo'] == $showgroupinfoglobal) || ($showgroupinfoglobal == 'choose')) {
$showgroupinfo = $aSurveyinfo['showgroupinfo'];
// } else {
// $showgroupinfo
= $showgroupinfoglobal;
// }

and line 598

//Redbug 9811 suppression de l'interaction de la globalSettings $showqnumcodeglobal
// $showqnumcodeglobal = getGlobalSetting('showqnumcode');
$showqnumcodesurvey = $this->aSurveyInfo['showqnumcode'];

    // Check global setting to see if survey level setting should be applied

// if ($showqnumcodeglobal == 'choose') {
// Use survey level settings
$showqnumcode_ = $showqnumcodesurvey; //B, N, C, or X
// } else {
// Use global setting
// $showqnumcode_ = $showqnumcodeglobal; //both, number, code, or none
// }

    $aShow = [];

    switch ($showqnumcode_) {
        // Both

// case 'both':
case 'B':
$aShow['question_code'] = true;
$aShow['question_number'] = true;
break;

        // Number only

// case 'number':
case 'N':
$aShow['question_code'] = false;
$aShow['question_number'] = true;
break;

        // Code only

// case 'code':
case 'C':
$aShow['question_code'] = true;
$aShow['question_number'] = false;
break;

        // Neither

// case 'none':
case 'X':
default:
$aShow['question_code'] = false;
$aShow['question_number'] = false;
break;
}

    return $aShow;
}

Best regards
Dan

gabrieljenik

gabrieljenik

2026-02-24 18:16

manager   ~84294

https://github.com/LimeSurvey/LimeSurvey/pull/4722

DenisChenu

DenisChenu

2026-02-24 18:22

developer   ~84295

Still this isue ?

Please fix it whole !

@tibor.pacalat

https://bugs.limesurvey.org/view.php?id=18450
https://bugs.limesurvey.org/view.php?id=19174

guest

guest

2026-02-24 22:36

viewer   ~84299

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=39353

dan24

dan24

2026-02-25 08:50

reporter   ~84300

Hello,

Thank you for fix committed.
We keep the "case" both,... in SurveyRuntimeHelper.php and the 2 globals settings are not cleaned up during the update.

Best regards

DenisChenu

DenisChenu

2026-02-25 09:08

developer   ~84302

We keep the "case" both,... in SurveyRuntimeHelper.php

The important part is : we don't get or replace by global setting

https://github.com/LimeSurvey/LimeSurvey/blob/fe1fa1003314b87716fd4a768bb341f1e6405687/application/helpers/SurveyRuntimeHelper.php#L464
https://github.com/LimeSurvey/LimeSurvey/blob/fe1fa1003314b87716fd4a768bb341f1e6405687/application/helpers/SurveyRuntimeHelper.php#L611

Then : it's OK here , no ?

the 2 globals settings are not cleaned up during the update.

https://github.com/LimeSurvey/LimeSurvey/pull/4722#issuecomment-3953781129

dan24

dan24

2026-02-25 09:12

reporter   ~84304

yes it's OK, No problem, it was just a note to avoid unnecessary code.

Have a good day.

Related Changesets

LimeSurvey: master fe1fa100

2026-02-24 22:36

Gabriel Jenik

Committer: GitHub


Details Diff
Fixed issue 20432: Question numbers and group info not displaying correctly after upgrade from v 3.x (04722) Affected Issues
20432
mod - application/helpers/SurveyRuntimeHelper.php Diff File

Issue History

Date Modified Username Field Change
2026-02-19 10:51 dan24 New Issue
2026-02-19 10:51 dan24 Issue Monitored: dan24
2026-02-19 10:51 dan24 Bug heat 0 => 2
2026-02-19 11:03 tibor.pacalat Assigned To => gabrieljenik
2026-02-19 11:03 tibor.pacalat Status new => assigned
2026-02-20 11:52 dan24 Note Added: 84255
2026-02-20 11:52 dan24 Bug heat 2 => 4
2026-02-23 19:49 guest Bug heat 4 => 10
2026-02-24 18:16 gabrieljenik Assigned To gabrieljenik => DenisChenu
2026-02-24 18:16 gabrieljenik Status assigned => ready for code review
2026-02-24 18:16 gabrieljenik Note Added: 84294
2026-02-24 18:16 gabrieljenik Bug heat 10 => 12
2026-02-24 18:22 DenisChenu Note Added: 84295
2026-02-24 18:22 DenisChenu Bug heat 12 => 14
2026-02-24 18:22 DenisChenu Relationship added related to 18450
2026-02-24 22:36 Changeset attached => LimeSurvey master fe1fa100
2026-02-24 22:36 guest Note Added: 84299
2026-02-24 22:36 guest Bug heat 14 => 16
2026-02-25 08:50 dan24 Note Added: 84300
2026-02-25 09:04 DenisChenu Assigned To DenisChenu => gabrieljenik
2026-02-25 09:04 DenisChenu Status ready for code review => resolved
2026-02-25 09:04 DenisChenu Resolution open => fixed
2026-02-25 09:08 DenisChenu Note Added: 84302
2026-02-25 09:12 dan24 Note Added: 84304