mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-11 16:08:40 +00:00
update
This commit is contained in:
parent
4bdb208dce
commit
99a1ac476d
|
|
@ -66,7 +66,7 @@ trait EditorDocListTrait
|
||||||
public function getEditorDocByTypeName(string $type) : EditorDoc
|
public function getEditorDocByTypeName(string $type) : EditorDoc
|
||||||
{
|
{
|
||||||
foreach ($this->notes as $note) {
|
foreach ($this->notes as $note) {
|
||||||
if ($note->type?->name === $type) {
|
if ($note->type?->title === $type) {
|
||||||
return $note;
|
return $note;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user