Skip to content

Commit 7158e72

Browse files
author
tai.letan
committed
Questionnaire: All branching shown in View your response (fix code review)
1 parent 3278146 commit 7158e72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

questionnaire.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ public function view_response($rid, $referer= '', $resps = '', $compare = false,
423423
}
424424
$pdf = ($outputtarget == 'pdf') ? true : false;
425425
foreach ($this->questions as $question) {
426-
if (self::isDependentOnChoices($question, $this->responses[$rid]->answers)) {
426+
if (self::is_dependent_on_choices($question, $this->responses[$rid]->answers)) {
427427
continue;
428428
}
429429
if ($question->type_id < QUESPAGEBREAK) {
@@ -4204,7 +4204,7 @@ public static function get_user_identity_fields($context, $userid) {
42044204
*
42054205
* @return bool True if the question has an unmet dependency; otherwise, false
42064206
*/
4207-
public static function isDependentOnChoices(object $question, array $answers): bool {
4207+
public static function is_dependent_on_choices(object $question, array $answers): bool {
42084208
if (!empty($question->dependencies)) {
42094209
foreach ($question->dependencies as $dependency) {
42104210
if (empty($answers[$dependency->dependquestionid][$dependency->dependchoiceid])) {

0 commit comments

Comments
 (0)