mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-31 08:14:41 +02:00
Renamed Storelocation entity to StorageLocation
This commit is contained in:
parent
09acca950d
commit
0af5a58dbe
59 changed files with 218 additions and 176 deletions
|
@ -35,7 +35,7 @@ use App\Entity\Attachments\GroupAttachment;
|
|||
use App\Entity\Attachments\ManufacturerAttachment;
|
||||
use App\Entity\Attachments\MeasurementUnitAttachment;
|
||||
use App\Entity\Attachments\PartAttachment;
|
||||
use App\Entity\Attachments\StorelocationAttachment;
|
||||
use App\Entity\Attachments\StorageLocationAttachment;
|
||||
use App\Entity\Attachments\SupplierAttachment;
|
||||
use App\Entity\Attachments\UserAttachment;
|
||||
use App\Exceptions\AttachmentDownloadException;
|
||||
|
@ -81,7 +81,7 @@ class AttachmentSubmitHandler
|
|||
GroupAttachment::class => 'group',
|
||||
ManufacturerAttachment::class => 'manufacturer',
|
||||
MeasurementUnitAttachment::class => 'measurement_unit',
|
||||
StorelocationAttachment::class => 'storelocation',
|
||||
StorageLocationAttachment::class => 'storelocation',
|
||||
SupplierAttachment::class => 'supplier',
|
||||
UserAttachment::class => 'user',
|
||||
LabelAttachment::class => 'label_profile',
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace App\Services\Attachments;
|
|||
use App\Entity\Parts\Footprint;
|
||||
use App\Entity\ProjectSystem\Project;
|
||||
use App\Entity\Parts\Category;
|
||||
use App\Entity\Parts\Storelocation;
|
||||
use App\Entity\Parts\StorageLocation;
|
||||
use App\Entity\Parts\MeasurementUnit;
|
||||
use App\Entity\Parts\Manufacturer;
|
||||
use App\Entity\Attachments\Attachment;
|
||||
|
@ -88,7 +88,7 @@ class PartPreviewGenerator
|
|||
}
|
||||
|
||||
foreach ($part->getPartLots() as $lot) {
|
||||
if ($lot->getStorageLocation() instanceof Storelocation) {
|
||||
if ($lot->getStorageLocation() instanceof StorageLocation) {
|
||||
$attachment = $lot->getStorageLocation()->getMasterPictureAttachment();
|
||||
if ($this->isAttachmentValidPicture($attachment)) {
|
||||
$list[] = $attachment;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue