View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
09722Bug reportsAssessmentspublic2015-08-21 14:27
Reporterkarencheah Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.06+ 
Fixed in Version2.06+ 
Summary09722: Some core replacement are not updated for hidden group
Description

I have setup an equation type question to calculate the score of the assessment to be displayed at the end. While testing, with the equation type question visible, the score is displayed at the end. Once I hide the equation type question, the score is not recorded anymore, even in the response record; it's zero.

Steps To Reproduce

Setup survey with 2 question groups. First group contains the questions. Second group contains the equation to calculate the score.

The survey is presented group by group with assessment mode enabled.

Test the survey with the equation type question visible to see that the score is calculated. Hide the equation type question and the score is not calculated/recorded.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)150619
I will donate to the project if issue is resolvedNo
BrowserSafari 7.1.6
Database type & versionMySQL 5.6.23
Server OS (if known)Unix
Webserver software & version (if known)cpsrvd 11.50.0.20
PHP Version5.4

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2015-06-27 00:23

developer   ~32533

Last edited: 2015-06-27 00:31

Ok, it's a bug on {ASSESSMENT_CURRENT_TOTAL}

Use round(sum(M001.valueNAOK, M002.valueNAOK) / 2 * 100, 2) work

But all assessment edit system seems broken actually (config=2 show a lot of error)

DenisChenu

DenisChenu

2015-06-27 11:05

developer   ~32534

It's for some core replacement : set at starting (force in LimeExpressionManager::StartSurvey() ) but not updated for "hidden equation"

Happen for:

  • ASSESSMENT_CURRENT_TOTAL
  • QID
  • GID
  • SGQ

A lot of dev , need a specific function only for Equation question type.

DenisChenu

DenisChenu

2015-06-28 20:11

developer   ~32537

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

DenisChenu

DenisChenu

2015-06-28 20:14

developer   ~32538

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

c_schmitz

c_schmitz

2015-06-29 11:11

administrator   ~32543

Version 2.06+ Build 150629 released.

Related Changesets

LimeSurvey: master 966da434

2015-06-28 18:11:03

DenisChenu

Details Diff
Fixed issue 09722: Some core replacement in equation are not updated for hidden group
Dev: templatereplace for ASSESSMENT_CURRENT_TOTAL and maybe some other
Dev: replacementArray for QID/GID/SGQ, really think other question part are not needed (we don't render Question then no beforeRenderQuestion event)
Affected Issues
09722
mod - application/helpers/expressions/em_manager_helper.php Diff File

LimeSurvey: develop 1aa7c920

2015-06-28 18:14:41

DenisChenu

Details Diff
Fixed issue 09722: Some core replacement in equation are not updated for hidden group
Dev: templatereplace for ASSESSMENT_CURRENT_TOTAL and maybe some other
Dev: replacementArray for QID/GID/SGQ, really think other question part are not needed (we don't render Question then no beforeRenderQuestion event)
Dev: more to keep the issue to be fixed in ls3
Affected Issues
09722
mod - application/helpers/expressions/em_manager_helper.php Diff File

Issue History

Date Modified Username Field Change
2015-06-26 14:33 karencheah New Issue
2015-06-26 14:33 karencheah File Added: limesurvey_survey_268184.lss.xml
2015-06-26 22:55 c_schmitz Assigned To => DenisChenu
2015-06-26 22:55 c_schmitz Status new => assigned
2015-06-27 00:23 DenisChenu Note Added: 32533
2015-06-27 00:28 DenisChenu Note Edited: 32533
2015-06-27 00:31 DenisChenu Note Edited: 32533
2015-06-27 10:59 DenisChenu Summary Hidden equation type question does not work => Some core replacement are not updated for hidden group
2015-06-27 11:05 DenisChenu Note Added: 32534
2015-06-28 20:11 DenisChenu Changeset attached => LimeSurvey master 966da434
2015-06-28 20:11 DenisChenu Note Added: 32537
2015-06-28 20:11 DenisChenu Resolution open => fixed
2015-06-28 20:14 DenisChenu Changeset attached => LimeSurvey develop 1aa7c920
2015-06-28 20:14 DenisChenu Note Added: 32538
2015-06-28 20:15 DenisChenu Status assigned => resolved
2015-06-28 20:15 DenisChenu Fixed in Version => 2.06+
2015-06-29 11:11 c_schmitz Note Added: 32543
2015-06-29 11:11 c_schmitz Status resolved => closed
2015-08-21 14:27 Mazi Status closed => feedback
2015-08-21 14:27 Mazi Resolution fixed => reopened
2015-08-21 14:27 Mazi File Deleted: limesurvey_survey_268184.lss.xml
2015-08-21 14:27 Mazi Status feedback => closed
2015-08-21 14:27 Mazi Resolution reopened => fixed