Merge pull request #4027 from christianbeeznest/orouba-19180

Course backup: Fix backup with thematic removed - refs BT#19180
pull/4029/head
Angel Fernando Quiroz Campos 4 years ago committed by GitHub
commit 0dee07294e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Chamilo/CourseBundle/Component/CourseCopy/CourseBuilder.php

@ -1751,7 +1751,7 @@ class CourseBuilder
}
$sql = "SELECT * FROM $table_thematic
WHERE c_id = $courseId $sessionCondition ";
WHERE c_id = $courseId AND active = 1 $sessionCondition ";
$db_result = Database::query($sql);
while ($row = Database::fetch_array($db_result, 'ASSOC')) {
$thematic = new Thematic($row);

Loading…
Cancel
Save