mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Fix image type alt name if newly generated
This commit is contained in:
parent
aeed7c0802
commit
5144b75ed7
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ final class DTOtoEntityConverter
|
||||||
//If the entity was newly created, set the file filter
|
//If the entity was newly created, set the file filter
|
||||||
if ($tmp->getID() === null) {
|
if ($tmp->getID() === null) {
|
||||||
$tmp->setFiletypeFilter('image/*');
|
$tmp->setFiletypeFilter('image/*');
|
||||||
$tmp->setAlternativeNames(self::TYPE_DATASHEETS_NAME);
|
$tmp->setAlternativeNames(self::TYPE_IMAGE_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $tmp;
|
return $tmp;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue