This commit is contained in:
Felix Ivo
2025-07-07 14:42:47 +02:00
6 changed files with 58 additions and 16 deletions

View File

@@ -50,7 +50,8 @@ class NotesController
$note = $this->notesModel->createNote(
$_POST['title'],
$_POST['content'],
$_SESSION['user_id']
$_SESSION['user_id'],
$_POST['priority']
);
if ($note) {
@@ -75,7 +76,8 @@ class NotesController
$noteId,
$_POST['title'],
$_POST['content'],
$_SESSION['user_id']
$_SESSION['user_id'],
$_POST['priority']
);
if ($note) {