]> gitweb.hamatoma.de Git - gadeku.git/commitdiff
TaskController.create: reference_id
authorHamatoma <author@hamatoma.de>
Wed, 19 Jun 2024 17:39:54 +0000 (19:39 +0200)
committerHamatoma <author@hamatoma.de>
Wed, 19 Jun 2024 17:39:54 +0000 (19:39 +0200)
app/Http/Controllers/TaskController.php

index a2b98aa521a20d2d22148056b2c8db12f0eaacba..330143a4818b2c1097b3aa3ee703b54ef47e7f02 100644 (file)
@@ -90,6 +90,7 @@ class TaskController extends Controller
                     $rc = back()->withErrors($validator)->withInput();
                 } else {
                     $fields['module_id'] = Module::idOfModule('Page');
+                    $fields['reference_id'] = $page->id;
                     $fields['notestatus_scope'] = 1011;
                     $fields['options'] .= "\n_task=" . $fields['task'];
                     $fields['owner_id'] = auth()->id();