Skip to content
Snippets Groups Projects
Commit a77a3eb3 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

add migration that fixes the issue from #2591, re #2591, fixes #2622

Closes #2622

Merge request !1769
parent f7e75f56
No related branches found
No related tags found
No related merge requests found
<?php
final class FixForBiest2591 extends Migration
{
protected function up()
{
$query = "DELETE `tools_activated`
FROM `tools_activated`
JOIN `seminare` ON `range_id` = `Seminar_id`
WHERE `seminare`.`status` IN (
SELECT `id`
FROM `sem_classes`
WHERE `studygroup_mode` = 1
) AND `plugin_id` IN (
SELECT `pluginid`
FROM `plugins`
WHERE `pluginclassname` = 'CoreParticipants'
)";
DBManager::get()->exec($query);
}
}
......@@ -44,7 +44,6 @@ class SemClass implements ArrayAccess
static protected $studygroup_forbidden_modules = [
'CoreAdmin',
'CoreParticipants',
'CoreSchedule'
];
static protected $sem_classes = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment