Hello Helen. Thank you for the reply.
It is indeed the same issue, unfortunately I can not update the sites at the moment so I was forced to fiddle with the forum_reset_userdata function in mod/forum/lib.php for the 1.9.7 site, making this:
} else if (!empty($data->reset_forum_types)){
$removeposts = true;
$typesql = "";
$types = array();
$forum_types_all = forum_get_forum_types_all();
foreach ($data->reset_forum_types as $type) {
if (!array_key_exists($type, $forum_types_all)) {
continue;
}
$typesql .= " AND f.type='$type'";
$types[] = $forum_types_all[$type];
}
$typesstr = get_string('resetforums', 'forum').': '.implode(', ', $types);
}
Into this:
} else if (!empty($data->reset_forum_types)){
$removeposts = true;
$typesql = "";
$types = array();
$sqltypes = array();
$forum_types_all = forum_get_forum_types_all();
foreach ($data->reset_forum_types as $type) {
if (!array_key_exists($type, $forum_types_all)) {
continue;
}
$types[] = $forum_types_all[$type];
$sqltypes[] = $type;
}
if (!empty($sqltypes)) {
$typesql = " AND f.type IN ('" . implode("','",$sqltypes) ."')";
}
$typesstr = get_string('resetforums', 'forum').': '.implode(', ', $types);
}
It apparently worked. Well...thanks for the Moodle Tracker link. =)