Skip to content

Commit

Permalink
Fixed issue #7646: Dual Matrix - function of the dropdown separator a…
Browse files Browse the repository at this point in the history
…dvanced question setting is unclear
  • Loading branch information
c-schmitz committed Mar 8, 2013
1 parent 09b70a1 commit 9d2ec42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion application/helpers/common_helper.php
Expand Up @@ -3265,7 +3265,7 @@ function questionAttributes($returnByName=false)
'category'=>$clang->gT('Display'),
'sortorder'=>120,
'inputtype'=>'text',
"help"=>$clang->gT('Post-Answer-Separator|Inter-Dropdownlist-Separator for dropdown lists'),
"help"=>$clang->gT('Text shown on each subquestion row between both scales in dropdown mode'),
"caption"=>$clang->gT('Dropdown separator'));

$qattributes["dualscale_headerA"]=array(
Expand Down
11 changes: 7 additions & 4 deletions application/helpers/qanda_helper.php
Expand Up @@ -6431,12 +6431,15 @@ function do_array_dual($ia)
$ddsuffix='';
}
if (trim($aQuestionAttributes['dropdown_separators'])!='') {
list ($postanswSep, $interddSep) =explode('|',$aQuestionAttributes['dropdown_separators']);
$postanswSep = $postanswSep;// Not used, nether in 2.0 or 1.92: category ?
$interddSep = $interddSep;// it's in seperator .... replace by $rigth/center like before are the best solution
$aSeparator =explode('|',$aQuestionAttributes['dropdown_separators']);
if (isset($aSeparator[1])) {
$interddSep=$aSeparator[1];
}
else {
$interddSep=$aSeparator[0];
}
}
else {
$postanswSep = '';
$interddSep = '';
}
$colspan_1 = '';
Expand Down

0 comments on commit 9d2ec42

Please sign in to comment.