Skip to content

Commit

Permalink
Fixed issue #16205: Slider left/right text and min/max not displayed …
Browse files Browse the repository at this point in the history
…correctly (#1509)

The renderer was correctly processing the subquestion text to strip the labels, but ended passing the original subquestion text to the view.
  • Loading branch information
gabrieljenik committed Aug 10, 2020
1 parent fdd72ed commit 44e977e
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -156,6 +156,7 @@ public function getRows()
foreach ($this->aSubQuestions[0] as $oSubquestion) {
$myfname = $this->sSGQA.$oSubquestion->title;
$sSubquestionText = $this->setDefaultIfEmpty($oSubquestion->questionl10ns[$this->sLanguage]->question, " ");
$labelText = $sSubquestionText;

// color code missing mandatory questions red
$alert = (
Expand All @@ -175,7 +176,7 @@ public function getRows()
'prefixclass' => 'numeric',
'alert' => $alert,
'theanswer' => $sSubquestionText,
'labelText' => $sSubquestionText,
'labelText' => $labelText,
'labelname' => 'answer'.$myfname,
'myfname' => $myfname,
'dispVal' => $dispVal,
Expand Down Expand Up @@ -248,7 +249,7 @@ public function getRows()
'labelname' => 'answer'.$myfname,
'alert' => $alert,
'theanswer' => $theanswer,
'labelText' => $sSubquestionText,
'labelText' => $labelText,
'myfname' => $myfname,
'dispVal' => $dispVal,
'sliderleft' => $sliderleft,
Expand Down

0 comments on commit 44e977e

Please sign in to comment.