Merge branch 'issue-44' into 'develop'
Certifications are now visible in pdf See merge request ldc-web/projets/startcoq!27
This commit is contained in:
commit
4dfa2d0412
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ class ProductResource extends JsonResource
|
|||
'picture' => $this->product->picture,
|
||||
'picture_alt' => $this->product->picture_alt,
|
||||
'picture_title' => $this->product->picture_title,
|
||||
'certification' => \optional($this->product->certification)->label,
|
||||
'certification' => \optional($this->product->certification)->label(),
|
||||
'origins' => $this->product->origins_enum->map(fn (OriginEnum $enum) => $enum->label())->implode(', '),
|
||||
'claims' => $this->product->claims_enum->map(fn (ClaimEnum $enum) => $enum->label())->implode(', '),
|
||||
'distribution_network' => $this->product->distribution_network->label(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue