diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-02-28 14:11:47 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2025-02-28 14:11:47 +0000 |
| commit | b9cc8762a6ff0d91b7e93850171803397637582d (patch) | |
| tree | 71bc583b4432df58f2e503b8b5669142baedba1d /app/controllers/contact.php | |
| parent | dd8542f5deea49a5ecc03dd4b255ebc5ba2223b8 (diff) | |
fix group removal of contacts, fixes #5319
Closes #5319
Merge request studip/studip!3991
Diffstat (limited to 'app/controllers/contact.php')
| -rw-r--r-- | app/controllers/contact.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/contact.php b/app/controllers/contact.php index 98c3daf..dee57fb 100644 --- a/app/controllers/contact.php +++ b/app/controllers/contact.php @@ -145,7 +145,7 @@ class ContactController extends AuthenticatedController $contact = Contact::find([User::findCurrent()->id, User::findByUsername(Request::username('user'))->id]); if ($contact) { if ($group) { - $contact->group_assignments->unsetBy('group_id', $group); + $contact->groups->unsetBy('group_id', $group); if ($contact->store()) { PageLayout::postSuccess(_('Der Kontakt wurde aus der Gruppe entfernt.')); } |
