View Issue Details

IDProjectCategoryView StatusLast Update
15776Feature requestsPluginspublic2020-01-25 22:07
ReporterDenisChenu Assigned To 
PrioritynoneSeverityfeature 
Status newResolutionopen 
Summary15776: Allow cleaner options system for options in question attributes
Description

Whan develop question attribute and have options in 3.X
We can return an clean array

        $scriptAttributes['scriptActivate']['options']= array(
            'y'=>gT('No'),
             'n'=>gT('Yes'),
        );

But now need

        $scriptAttributes['scriptActivate']['options']= array(
          'option'=> array(
            array('value'=>'y', 'text'=> gT'No')),
            array('value'=>'n', 'text'=> gT('Yes'),
          ),
Additional Information

I don't know when its fixed for core attribute,

But seems finally it send as options->option …

I think sendig it finally as

options = [
key => text
]

Is the best and most understandable system.

TagsNo tags attached.

Relationships

related to 15224 feedbackcdorin Bug reports newQuestionAttributes deprecated : need a replacer 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-01-25 22:07 DenisChenu New Issue
2020-01-25 22:07 DenisChenu Relationship added related to 15224