LimeSurvey: master 0dab3a85

Author Committer Branch Timestamp Parent
gabrieljenik GitHub master 2020-10-07 21:42 master 1f3e2932
Affected Issues  16642: PHP warning when showing array questions
Changeset

Fixed issue 16642: PHP warning when showing array questions (#1608)

For dual scale questions, the 'cellwidth' variable calculation involved the number of labels. But, the number of labels is only calculated when the question is shown as radios, and not when it's shown as dropdown.

However, fixing the 'cellwidth' calculation (diving by 1 when 'numrows' is not set) affected the rendering because the "answer_dropdown" view used the 'cellwidth' value for styling and it now changed from "INF" (infinity) to an actual number. So, the use of 'cellwidth' in dropdown view was removed in order to not alter how the question was rendered.

mod - application/core/QuestionTypes/ArrayMultiscale/RenderArrayMultiscale.php Diff File
mod - application/views/survey/questions/answer/arrays/dualscale/answer_dropdown.twig Diff File