Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

christianbeeznest
Copy link
Contributor

No description provided.

@@ -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:
Copy link

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),
Copy link

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
Copy link

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,
Copy link

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,
Copy link

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

Copy link

codeclimate bot commented Aug 30, 2024

Code Climate has analyzed commit 24e0a60 and detected 57 issues on this pull request.

Here's the issue category breakdown:

Category Count
Style 53
Bug Risk 2
Clarity 1
Complexity 1

View more on Code Climate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant