Skip to content

Commit

Permalink
Fixed issue: can't save assessment in array question
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Dec 28, 2017
1 parent 7dc740d commit d6c5303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/questions.php
Expand Up @@ -519,7 +519,7 @@ public function _editansweroptions($surveyid, $gid, $qid)
$oAnswer->language = $language;
$oAnswer->sortorder = $answer->sortorder;
$oAnswer->scale_id = $i;
$oAnswer->assessment_value = $answer->assessment_value;
$oAnswer->assessment_value = (isset($answer->assessment_value) ? $answer->assessment_value : 0);
$oAnswer->save();
}
}
Expand Down

1 comment on commit d6c5303

@LouisGac
Copy link
Contributor

@LouisGac LouisGac commented on d6c5303 Dec 29, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it did not solve the problem

Please sign in to comment.