delete share if note is deleted

This commit is contained in:
Vinzenz committed 2016-05-31 17:01:12 +02:00
1 parent df3db489f4
commit a19bc47bd3
2 files changed
+8 -1

No files matched your search

+3 -1
View File
@@ -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);
}
}
}