Allow generate build with surveys selected only - refs BT#13496

pull/2487/head
Angel Fernando Quiroz Campos 8 years ago committed by GitHub
parent b52f8b5b18
commit 2fc53f891d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/Chamilo/CourseBundle/Component/CourseCopy/CourseBuilder.php

@ -913,6 +913,9 @@ class CourseBuilder
$sql = 'SELECT * FROM '.$table_survey.'
WHERE c_id = '.$courseId.' '.$sessionCondition;
if ($id_list) {
$sql .= " AND iid IN (".implode(', ', $id_list).")";
}
$db_result = Database::query($sql);
while ($obj = Database::fetch_object($db_result)) {
$survey = new Survey(

Loading…
Cancel
Save