svg
This commit is contained in:
@ -31,7 +31,7 @@ class Issue
|
||||
private int $rowissue = 0;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private string $color = '';
|
||||
private ?string $color = null;
|
||||
|
||||
#[ORM\ManyToOne(targetEntity: Project::class, inversedBy: 'issues')]
|
||||
#[ORM\JoinColumn(nullable: false)]
|
||||
@ -130,7 +130,9 @@ class Issue
|
||||
|
||||
public function getColor(): ?string
|
||||
{
|
||||
return $this->rowsprint;
|
||||
if($this->color) return $this->color;
|
||||
elseif($this->parent) return $this->parent->getColor();
|
||||
else return null;
|
||||
}
|
||||
|
||||
public function setColor(?string $color): static
|
||||
|
Reference in New Issue
Block a user