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

fix relation blubberthread on Statusgruppen model and sanitize return value of...

Closes #955
parent 12e12fd7
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ class BlubberStatusgruppeThread extends BlubberThread
return $thread;
}
}
return false;
return null;
}
public function isReadable(string $user_id = null)
......
......@@ -75,6 +75,7 @@ class Statusgruppen extends SimpleORMap implements PrivacyObject
];
$config['has_one']['blubberthread'] = [
'class_name' => BlubberStatusgruppeThread::class,
'assoc_func' => 'findByStatusgruppe_id',
'on_store' => 'store',
'on_delete' => 'delete'
];
......
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