mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-04 22:45:56 +01:00
Added UserSelectType and allow to set owner of a storage location
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user