delete share if note is deleted

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

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);
}
}
}