mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 15:47:17 +01:00
delete share if note is deleted
This commit is contained in:
@@ -167,6 +167,8 @@ class NoteController extends Controller {
|
||||
}
|
||||
$oldcolorid = $note->getColorId();
|
||||
|
||||
$this->notesharemapper->deleteByNoteId($note->getId());
|
||||
|
||||
// Delete note.
|
||||
$this->notemapper->delete($note);
|
||||
|
||||
@@ -178,4 +180,4 @@ class NoteController extends Controller {
|
||||
|
||||
return new DataResponse($note);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user