Skip to content
Snippets Groups Projects
Commit 3e9cceed authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "DataField::getDataFields filtert bei Veranstaltungen falsch nach der Kategorie"

Closes #2104

Merge request studip/studip!1363
parent 5aeec366
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
......@@ -98,7 +98,11 @@ class DataField extends SimpleORMap implements PrivacyObject
}
if ($objectClass) {
$condition = ['object_class & ?'];
if (in_array($objectType, ['user', 'userinstrole', 'usersemdata', 'roleinstdata'])) {
$condition = ['object_class & ?'];
} else {
$condition = ['object_class = ?'];
}
if ($includeNullClass) {
$condition[] = 'object_class IS 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