View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
10023Bug reportsPluginspublic2020-03-13 18:46
ReporterResearchOnBlogs Assigned To 
PrioritynormalSeverityminor 
Status closedResolutionopen 
Product Version2.06+ 
Target Version2.06+ 
Summary10023: Plugin settings - list view from example
Description

It's seams that the type list from plugin settings widget is not working correctly, if you use more than one row.

Steps To Reproduce

I used it that way, it the example does not work, too, in my case.

'CPDAttributes' => [
'type' => 'list',
'label' => 'Attribute Mapping',

                'items' => [
                    'qcode' => [
                        'type' => 'select',
                        'label' => 'QCode',
                        'options' =>
                            $this->createList('qid', $event->get('survey')),
                        'current' => $this->get('qcode[', 'Survey', $event->get('survey')) // todo is this a LS bug "["
                    ],
                    'pdField' => [
                        'type' => 'select',
                        'label' => 'CPD Attribut',
                        'options' => $this->createList('cpd', $this->id),
                        'current' => $this->get('cpdField[', 'Survey', $event->get('survey'))
                    ],
                ],
            ],
Additional Information

Sorry was to much into it....
It seems that a second row of the type list is not stored. I recognize that a row is stored with "[" in the settings table and not with a "list-row" id.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build) 2.06+
I will donate to the project if issue is resolvedNo
Browser
Database type & versionxx
Server OS (if known)xx
Webserver software & version (if known)xx
PHP Version5.6

Relationships

duplicate of 08976 closedsammousa Plugin Settings 'type' => 'list' are not stored 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2015-11-06 15:04

developer   ~33520

Why assign it to me ?

ResearchOnBlogs

ResearchOnBlogs

2015-11-07 09:56

developer   ~33533

Hi Denis,
because as far as I know, you are the creator of the setting widget :-). If you have no time or clue assign it back

DenisChenu

DenisChenu

2015-11-07 14:06

developer   ~33534

Last edited: 2015-11-07 14:07

I'm not the creator of Setting widget : Sam create it, i fix/improve it :)

See discussion here : https://bugs.limesurvey.org/view.php?id=8976

PS : the problem is here : https://github.com/LimeSurvey/LimeSurvey/blob/master/application/extensions/SettingsWidget/SettingsWidget.php#L438

No 'foreach', json_decode or anything else ...

c_schmitz

c_schmitz

2016-08-25 11:27

administrator   ~40484

Is this resolved in 2.50 or still an issue?

DenisChenu

DenisChenu

2016-08-25 11:30

developer   ~40485

No decision was made, then not fixed.

c_schmitz

c_schmitz

2020-03-13 18:46

administrator   ~56471

This version of LimeSurvey is not longer supported. Please check so that the issue is fixed in a more recent version of LimeSurvey. If it's not, please reopen this bug report. Thank you.

Issue History

Date Modified Username Field Change
2015-11-06 14:29 ResearchOnBlogs New Issue
2015-11-06 14:29 ResearchOnBlogs Status new => assigned
2015-11-06 14:29 ResearchOnBlogs Assigned To => DenisChenu
2015-11-06 15:04 DenisChenu Note Added: 33520
2015-11-06 15:04 DenisChenu Assigned To DenisChenu =>
2015-11-06 15:04 DenisChenu Status assigned => new
2015-11-06 15:07 DenisChenu Relationship added duplicate of 08976
2015-11-07 09:56 ResearchOnBlogs Note Added: 33533
2015-11-07 09:58 ResearchOnBlogs Additional Information Updated
2015-11-07 14:06 DenisChenu Note Added: 33534
2015-11-07 14:07 DenisChenu Note Edited: 33534
2016-08-25 11:27 c_schmitz Note Added: 40484
2016-08-25 11:30 DenisChenu Note Added: 40485
2020-03-13 18:46 c_schmitz Note Added: 56471
2020-03-13 18:46 c_schmitz Status new => closed