added scaleType configuration to questionnaire import and display
This commit is contained in:
@ -83,6 +83,7 @@ try {
|
||||
if (isset($q['hint1'])) $config['hint1'] = $q['hint1'];
|
||||
if (isset($q['hint2'])) $config['hint2'] = $q['hint2'];
|
||||
if (isset($q['symptoms'])) $config['symptoms'] = $q['symptoms'];
|
||||
if (isset($q['scaleType'])) $config['scaleType'] = $q['scaleType'];
|
||||
if (isset($q['range'])) $config['range'] = $q['range'];
|
||||
if (isset($q['constraints'])) $config['constraints'] = $q['constraints'];
|
||||
if (isset($q['precision'])) $config['precision'] = $q['precision'];
|
||||
@ -92,7 +93,7 @@ try {
|
||||
if (isset($q['otherNextQuestionId'])) $config['otherNextQuestionId'] = $q['otherNextQuestionId'];
|
||||
if (isset($q['otherOptionKey'])) $config['otherOptionKey'] = $q['otherOptionKey'];
|
||||
if (isset($q['config']) && is_array($q['config'])) {
|
||||
foreach (['otherNextQuestionId', 'otherOptionKey', 'hint', 'maxLength', 'multiline', 'textKey', 'precision'] as $ck) {
|
||||
foreach (['otherNextQuestionId', 'otherOptionKey', 'hint', 'maxLength', 'multiline', 'textKey', 'precision', 'scaleType'] as $ck) {
|
||||
if (isset($q['config'][$ck])) {
|
||||
$config[$ck] = $q['config'][$ck];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user