Use correct Attachment class for Storelocation Controller.

This fixes issue #81.
This commit is contained in:
Jan Böhmer 2020-10-03 13:31:05 +02:00
parent 09cb74d8bd
commit 1caaad908b
3 changed files with 12 additions and 6 deletions

View file

@ -42,6 +42,7 @@ declare(strict_types=1);
namespace App\Controller\AdminPages;
use App\Entity\Attachments\StorelocationAttachment;
use App\Entity\Parameters\StorelocationParameter;
use App\Entity\Parts\Storelocation;
use App\Form\AdminPages\StorelocationAdminForm;
@ -63,7 +64,7 @@ class StorelocationController extends BaseAdminController
protected $twig_template = 'AdminPages/StorelocationAdmin.html.twig';
protected $form_class = StorelocationAdminForm::class;
protected $route_base = 'store_location';
protected $attachment_class = StorelocationAdminForm::class;
protected $attachment_class = StorelocationAttachment::class;
protected $parameter_class = StorelocationParameter::class;
/**