Skip to content
Snippets Groups Projects
Commit 6f98aa3b authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Elmar Ludwig
Browse files

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

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