From e96dde62cc01081a243f18f1d13cc049f1670b81 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+github@gmail.com> Date: Fri, 12 Nov 2021 10:27:03 +0100 Subject: [PATCH] fixes #417 --- lib/models/User.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/User.class.php b/lib/models/User.class.php index 7853ccbd3af..fbd58963927 100644 --- a/lib/models/User.class.php +++ b/lib/models/User.class.php @@ -151,7 +151,7 @@ class User extends AuthUserMd5 implements Range, PrivacyObject ]; $config['has_many']['consultation_blocks'] = [ 'class_name' => ConsultationBlock::class, - 'assoc_foreign_key' => 'teacher_id', + 'assoc_foreign_key' => 'range_id', 'on_delete' => 'delete', ]; $config['has_many']['consultation_bookings'] = [ -- GitLab