$fields = [
                     'title' => '',
                     'body' => '',
+                    'page_id' => $pageId,
                     'category_scope' => '1054',
                     'visibility_scope' => '1091',
                     'owner_id' => strval(auth()->id()),
                     $rc = back()->withErrors($validator)->withInput();
                 } else {
                     $fields['module_id'] = Module::idOfModule('Page');
-                    $fields['reference_id'] = $page->id;
+                    $fields['reference_id'] = $pageId;
                     $fields['notestatus_scope'] = 1011;
                     $fields['options'] .= "\n_task=" . $fields['task'];
                     $fields['owner_id'] = auth()->id();
             $mode = 'check';
             if (count($fields) <= 1) {
                 $mode = 'fill';
-                $fields = StringHelper::explodeAssoc($note->options);
+                $fields = StringHelper::explodeAssoc($note->options ?? '');
                 $fields['message'] = '';
                 if ($page != null && $note != null) {
                     $fields['pageId'] = $page->id;
 
         @csrf
         <x-laraknife.panels.create title="{{ __('Creation of a Task') }}">
             <input type="hidden" name="options" value="{{ $context->valueOf('options') }}">
+            <input type="hidden" name="page_id" value="{{ $context->valueOf('page_id') }}">
             <x-laraknife.forms.combobox position="first" name="category_scope" label="Category" :options="$optionsCategory"
                 width2="4" />
             <x-laraknife.forms.combobox position="last" name="visibility_scope" label="Visibility" :options="$optionsVisibility"