mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-09 18:04:33 +02:00
Fixed internal server error, when using owner placeholder on stored label profile
This commit is contained in:
parent
749e7dbdf9
commit
9244fe5944
2 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ class PartLot extends AbstractDBElement implements TimeStampableInterface, Named
|
|||
* @ORM\ManyToOne(targetEntity="App\Entity\UserSystem\User")
|
||||
* @ORM\JoinColumn(name="id_owner", referencedColumnName="id", nullable=true, onDelete="SET NULL")
|
||||
*/
|
||||
protected ?User $owner;
|
||||
protected ?User $owner = null;
|
||||
|
||||
public function __clone()
|
||||
{
|
||||
|
|
|
@ -95,7 +95,7 @@ class Storelocation extends AbstractPartsContainingDBElement
|
|||
* @ORM\ManyToOne(targetEntity="App\Entity\UserSystem\User")
|
||||
* @ORM\JoinColumn(name="id_owner", referencedColumnName="id", nullable=true, onDelete="SET NULL")
|
||||
*/
|
||||
protected ?User $owner;
|
||||
protected ?User $owner = null;
|
||||
|
||||
/**
|
||||
* @var bool If this is set to true, only parts lots, which are owned by the same user as the store location are allowed to be stored here.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue