Mark newly created entities better in structural entity selector

This commit is contained in:
Jan Böhmer 2023-07-12 23:58:40 +02:00
parent 6cd9640b30
commit c4439cc9db
2 changed files with 21 additions and 2 deletions

View file

@ -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;
}