Browse Source

Minor - Changes in CLI script config - refs BT#13243

Yannick Warnier 7 years ago
parent
commit
80b996f5c6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/scripts/fix_group_items_with_old_db.php

+ 2 - 2
tests/scripts/fix_group_items_with_old_db.php

@@ -62,7 +62,7 @@ $groups = getOldGroupsByCourse();
 
 // Set this optional filter to something else than empty if you want to only
 // check items of one course
-$optionalCourseFilter = '11';
+$optionalCourseFilter = '';
 $sqlOld = "SELECT * FROM c_item_property WHERE to_group_id IS NOT NULL AND to_group_id != 0";
 if (!empty($optionalCourseFilter)) {
     $sqlOld .= ' AND c_id = '.$optionalCourseFilter;
@@ -112,7 +112,7 @@ foreach ($oldDBH->query($sqlOld) as $oldRow) {
             }
         }
     } else {
-        //echo "xx> No corresponding c_item_property found".PHP_EOL;
+        echo "xx> No corresponding c_item_property found".PHP_EOL;
 
         // First check if the group referenced in the old database still exists.
         // This is originally the c_group_info.id, NOT the c_group_info.iid, so