mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-23 20:35:03 +02:00
Mark newly created entities better in structural entity selector
This commit is contained in:
parent
6cd9640b30
commit
c4439cc9db
2 changed files with 21 additions and 2 deletions
|
@ -86,6 +86,9 @@ class StructuralEntityChoiceHelper
|
|||
$tmp += ['data-filetype_filter' => $choice->getFiletypeFilter()];
|
||||
}
|
||||
|
||||
//Show entities that are not added to DB yet separately from other entities
|
||||
$tmp['data-not_in_db_yet'] = $choice->getID() === null;
|
||||
|
||||
return $tmp;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue