Move notes for attachments to different object. This sacrifices the original notes.

This commit is contained in:
James Cole
2018-03-19 15:28:35 +01:00
parent 6a1d39d5f8
commit 909f72e6be
9 changed files with 144 additions and 31 deletions

View File

@@ -141,6 +141,9 @@ class AttachmentController extends Controller
}
$request->session()->forget('attachments.edit.fromUpdate');
$preFilled['notes'] = $this->repository->getNoteText($attachment);
$request->session()->flash('preFilled', $preFilled);
return view('attachments.edit', compact('attachment', 'subTitleIcon', 'subTitle'));
}