View Issue Details

This issue affects 2 person(s).
 10
IDProjectCategoryView StatusLast Update
20432Bug reportsInstallationpublic2026-02-20 11:52
Reporterdan24 Assigned Togabrieljenik  
PrioritynoneSeverityminor 
Status assignedResolutionopen 
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 heat10
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

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

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