added priority to notes

This commit is contained in:
2025-07-07 14:28:11 +02:00
parent ce59837500
commit e8766ecc26
6 changed files with 58 additions and 15 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) {