chamilo-lms
chamilo-lms copied to clipboard
C2 : Survey in LP : enable student to access
In Chamilo Master you can include a survey in a LP. When including a survey in a LP the student automatically gain access to the survey because it is included in the learning path no need to have an invitation. In Chamilo Master on the 2024/08/07 we can include a survey in a LP but the student does not have access it is indicated "Protected document". So it needs to be reimplemented in master to enable a student to access a survey in the LP. And if the course is included in a session then the student in the session that are in the LP need to be able to do the survey as well.
In Chamilo 1.11.x it was implemented with this option :
// Allow survey tool in learnpath
// ALTER TABLE c_survey_answer ADD COLUMN c_lp_item_id INT DEFAULT 0;
// Edit src/Chamilo/CourseBundle/Entity/CSurveyAnswer.php and add a '' character in front of 'ORM\Column(name="c_lp_item_id"
// ALTER TABLE c_survey_invitation ADD COLUMN c_lp_item_id int(11) DEFAULT 0;
// Edit src/Chamilo/CourseBundle/Entity/CSurveyInvitation.php and add a '' character in front of 'ORM\Column(name="c_lp_item_id"
//$_configuration['allow_survey_tool_in_lp'] = false;