Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
16669Bug reportsPluginspublic2020-10-28 12:39
ReporterDenisChenu Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version4.3.16 
Summary16669: getQuestionAttributes function don't get the plugins attribute
Description

The getQuestionAttributes are not compatible with plugins Question Attribute

Steps To Reproduce
  1. Download and activate https://gitlab.com/SondagesPro/QuestionSettingsType/addScriptToQuestion
  2. Login in 3.X as super admin, import included lss : see "It work" in help
  3. Login in 4.X as super admin, import included lss : see "The addScriptToQuestion plugin didn't work." in help.
Additional Information

https://gitlab.com/SondagesPro/QuestionSettingsType/addScriptToQuestion/-/blob/master/addScriptToQuestion.php#L64

QuestionAttribute::model()->getQuestionAttributes seems to return only core attribute ?
I didn't check with a Question Theme

TagsNo tags attached.
Complete LimeSurvey version number (& build)4.3.15
I will donate to the project if issue is resolvedNo
Sync to Zoho Project
Browsernot relevant
Database & DB-Versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Relationships

related to 15224 closedp_teichmann newQuestionAttributes deprecated : need a replacer 
related to 16772 new Allow plugin to add question attributes 

Activities

DenisChenu

DenisChenu

2020-09-15 15:14

developer  

ollehar

ollehar

2020-10-28 11:31

administrator   ~60435

Would it make sense to re-introduce the method questionHelper::getAttributesDefinitions to LS4?

ollehar

ollehar

2020-10-28 11:32

administrator   ~60436

Last edited: 2020-10-28 11:39

View 2 revisions

Question and question group import also use the newQuestionAttribute event, through questionHelper::getAttributesDefinitions.

DenisChenu

DenisChenu

2020-10-28 12:38

developer   ~60437

Would it make sense to re-introduce the method questionHelper::getAttributesDefinitions to LS4?

I don't know … personally i think current code is a lot more complex than previous one …

DenisChenu

DenisChenu

2020-10-28 12:39

developer   ~60438

PS : see https://bugs.limesurvey.org/view.php?id=16772

Issue History

Date Modified Username Field Change
2020-09-15 15:14 DenisChenu New Issue
2020-09-15 15:14 DenisChenu File Added: limesurvey_survey_addScriptToQuestion.lss
2020-09-15 15:29 DenisChenu Relationship added related to 15224
2020-10-21 18:07 gabrieljenik Issue cloned: 16772
2020-10-21 18:07 gabrieljenik Relationship added related to 16772
2020-10-28 11:31 ollehar Note Added: 60435
2020-10-28 11:32 ollehar Note Added: 60436
2020-10-28 11:39 ollehar Note Edited: 60436 View Revisions
2020-10-28 12:38 DenisChenu Note Added: 60437
2020-10-28 12:39 DenisChenu Note Added: 60438