This commit is contained in:
ludo
2024-03-03 14:44:35 +01:00
parent c15a6e380f
commit 5359375210
6 changed files with 85 additions and 74 deletions

View File

@@ -105,10 +105,10 @@ class Articles
}
break;
case 'App\Models\Botanic\Specie':
$data['specie'] = $article->product->description;
$data['specie'] = $article->product ? $article->product->description : '';
break;
case 'App\Models\Shop\Merchandise':
$data['merchandise'] = $article->product->description;
$data['merchandise'] = $article->product ? $article->product->description : '';
$data['producer'] = $article->product->producer->description;
break;
default: