From d4113f9f44c286b8ca6b1eace00981983570552f Mon Sep 17 00:00:00 2001
From: Ron Lucke <lucke@elan-ev.de>
Date: Thu, 11 Jul 2024 11:30:37 +0000
Subject: [PATCH] fix  #4389

Closes #4389

Merge request studip/studip!3202
---
 .../components/courseware/tasks/CoursewareDashboardTasks.vue   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/resources/vue/components/courseware/tasks/CoursewareDashboardTasks.vue b/resources/vue/components/courseware/tasks/CoursewareDashboardTasks.vue
index 9c9e298eff2..8dac7c3a1c8 100644
--- a/resources/vue/components/courseware/tasks/CoursewareDashboardTasks.vue
+++ b/resources/vue/components/courseware/tasks/CoursewareDashboardTasks.vue
@@ -220,6 +220,7 @@ export default {
             this.currentTask = null;
         },
         async submitTask() {
+            const currentTaskGroup = this.getTaskGroupById({ id: this.currentTask.relationships['task-group'].data.id });
             this.showSubmitDialog = false;
             let attributes = {};
             attributes.submitted = true;
@@ -228,7 +229,7 @@ export default {
                 taskId: this.currentTask.id,
             });
             this.companionSuccess({
-                info: '"' + this.currentTask.attributes.title + '" ' + this.$gettext('wurde erfolgreich abgegeben.'),
+                info: '"' + currentTaskGroup.attributes.title + '" ' + this.$gettext('wurde erfolgreich abgegeben.'),
             });
             this.currentTask = null;
         },
-- 
GitLab