-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Learnpath: Enable survey access in LP without invitation - refs #5713 #5766
base: master
Are you sure you want to change the base?
Conversation
@@ -8015,6 +8016,27 @@ public static function rl_get_resource_link_for_learnpath( | |||
} | |||
|
|||
return $main_dir_path.'work/work.php?'.api_get_cidreq().'&id='.$rowItem->getPath().'&'.$extraParams; | |||
case TOOL_SURVEY: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CASE body must start on the line following the statement
$autoSurveyLink = SurveyUtil::generateFillSurveyLink( | ||
$survey, | ||
'auto', | ||
api_get_course_entity($course_id), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable "course_id" is not in valid camel caps format
$survey, | ||
'auto', | ||
api_get_course_entity($course_id), | ||
$session_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable "session_id" is not in valid camel caps format
); | ||
$lpParams = [ | ||
'lp_id' => $learningPathId, | ||
'lp_item_id' => $id_in_path, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable "id_in_path" is not in valid camel caps format
@@ -256,7 +274,8 @@ | |||
SurveyUtil::remove_answer( | |||
$survey_invitation['user_id'], | |||
$surveyId, | |||
$survey_question_id | |||
$survey_question_id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable "survey_question_id" is not in valid camel caps format
Code Climate has analyzed commit 24e0a60 and detected 57 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
No description provided.