mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
Merge branch 'fix'
This commit is contained in:
@@ -72,6 +72,9 @@ class PostNotePin implements Action
|
||||
$this->checkParent($note);
|
||||
$this->checkPinnedCount($note);
|
||||
|
||||
$note->setIsPinned(true);
|
||||
$this->entityManager->saveEntity($note);
|
||||
|
||||
return ResponseComposer::json(true);
|
||||
}
|
||||
|
||||
@@ -91,9 +94,6 @@ class PostNotePin implements Action
|
||||
throw new Forbidden("No read access.");
|
||||
}
|
||||
|
||||
$note->setIsPinned(true);
|
||||
$this->entityManager->saveEntity($note);
|
||||
|
||||
return $note;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user