mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 18:28:49 +02:00
Added UserSelectType and allow to set owner of a storage location
This commit is contained in:
parent
f101e1b184
commit
5f5541ca12
8 changed files with 142 additions and 36 deletions
|
@ -59,4 +59,14 @@ class NamedDBElementRepository extends DBElementRepository
|
|||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the list of all nodes to use in a select box.
|
||||
* @return AbstractNamedDBElement[]
|
||||
*/
|
||||
public function toNodesList(): array
|
||||
{
|
||||
//All nodes are sorted by name
|
||||
return $this->findBy([], ['name' => 'ASC']);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue