Relationship Graph | View Issue Dependency Graph | |||
|
||||
|
View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
14200 | Bug reports | [All Projects] Expression Manager | public | 2018-11-01 14:29 | 2019-08-20 16:31 |
Reporter | TonisOrmisson | Assigned To | cdorin | ||
Priority | none | Severity | major | ||
Status | assigned | Resolution | open | ||
Product Version | 3.16.x | ||||
Target Version | Fixed in Version | ||||
Summary | 14200: EM missing data for multiple choice questions | ||||
Description | Expression manager is missing question info for multiple-response questions eg {Q1.qid}, {Q1.sgqa} are missing. Possibly some other data also | ||||
Steps To Reproduce | See attached survey example. | ||||
Tags | No tags attached. | ||||
Complete LimeSurvey version number (& build) | 32aef4b01ae08f2364d82a8389d1e6dc025f4db5 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database & DB-Version | n/a | ||||
Server OS (if known) | n/a | ||||
Webserver software & version (if known) | n/a | ||||
PHP Version | n/a | ||||
limesurvey_survey_791116.lss (18,367 bytes) |
|
as far as I understand the $LEM->qcode2sgqa array does not contain multiple choice question codes |
|
SGQA is : database name (or must be near). It's a related to an input inside HTML. Parent question didn't have input. For expression manager : ONLY value save in DB exist. For a single question Q1, for a multiple question : Q1_SQ01,Q1_SQ02, for a multiplexmultiple question (array number, array text) : Q1_SY1_SX1 etc … For Q1 : maybe we can add something with "static" set to true with only .question, .relevance etc unsure about sgqa : since sgqa didn't exist for Q1. |
|
ok nevermind the SGQA the whole {Q1.*} is missing for multis. {Q1.gid}, {Q1.qcode}, {Q1.type} etc etc |
|
Yes, but explanation still valid :). What to shown with Q1.NAOK ? that.Q1.NAOK ? It really a complete new feature … i already think of adding a plugin event here https://github.com/LimeSurvey/LimeSurvey/blob/2d58085ced72e2bb471aa8b4493b3730aa9e4749/application/helpers/expressions/em_manager_helper.php#L4378 To allow plugin to update, create new knowVars … something like $event->set('knownVars',$this->knownVars); $this->knownVars = $event->get('knownVars'); (in fact : i think adding Q1.help, and some Q1.number, Q1.medium (see https://gitlab.com/SondagesPro/getStatInSurvey#documentation). Then more to update current knownVars, but adding can be done too. What did you think of such feature ? This can broke survey with badly devel plugin, but it can does a lot. |
|
@TonisOrmisson : maybe we can add it in https://github.com/LimeSurvey/LimeSurvey/commit/011890d128084176074421cbe82cdd342706f729#diff-1a3bea26d4d8bfcd4a0422ab1b3b9864 Not complex |
|
Is that issue solved in LS4? What is the position of core devs? |
|
My personal opinion : it can be interesting BUT
|
|
Date Modified | Username | Field | Change |
---|---|---|---|
2018-11-01 14:29 | TonisOrmisson | New Issue | |
2018-11-01 14:29 | TonisOrmisson | File Added: limesurvey_survey_791116.lss | |
2018-11-01 14:29 | TonisOrmisson | File Added: Screenshot from 2018-11-01 15-24-07.png | |
2018-11-01 14:31 | TonisOrmisson | Note Added: 49502 | |
2018-11-02 11:24 | DenisChenu | Note Added: 49512 | |
2018-11-02 11:25 | DenisChenu | Note Edited: 49512 | View Revisions |
2018-11-02 12:12 | TonisOrmisson | Note Added: 49513 | |
2018-11-02 12:14 | TonisOrmisson | Note Edited: 49513 | View Revisions |
2018-11-02 14:47 | DenisChenu | Note Added: 49517 | |
2018-11-03 15:58 | DenisChenu | Relationship added | related to 14206 |
2019-08-05 16:28 | DenisChenu | Note Added: 53111 | |
2019-08-13 15:12 | jelo | Note Added: 53171 | |
2019-08-13 15:15 | cdorin | Assigned To | => cdorin |
2019-08-13 15:15 | cdorin | Status | new => assigned |
2019-08-14 09:01 | Mazi | Relationship added | related to 08858 |
2019-08-20 16:31 | DenisChenu | Note Added: 53199 |