Skip to content

Commit

Permalink
Fixed issue #16140: Error 500 each time save a question (debug > 1)
Browse files Browse the repository at this point in the history
Dev: merge with QuestionAttribute::getDefaultSettings
  • Loading branch information
Shnoulle committed Apr 16, 2020
1 parent 66ff71b commit a62fbb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/models/QuestionBaseDataSet.php
Expand Up @@ -412,8 +412,9 @@ protected function getValidationInput()

protected function parseFromAttributeHelper($sAttributeKey, $aAttributeArray)
{
$aAttributeArray = array_merge(QuestionAttribute::getDefaultSettings(),$aAttributeArray);
$aAdvancedAttributeArray = [
'name' => $sAttributeKey,
'name' => empty($aAttributeArray['name']) ? $sAttributeKey : $aAttributeArray['name'],
'title' => CHtml::decode($aAttributeArray['caption']),
'inputtype' => $aAttributeArray['inputtype'],
'formElementId' => $sAttributeKey,
Expand Down

0 comments on commit a62fbb5

Please sign in to comment.