Benenne Medien ohne Anzeigenamen nach ihrem Arbeitstitel
Der Name eines Lizenzartikels fällt auf den Arbeitstitel oder die Bezeichnung des Inhalts zurück, bevor die Kennung erscheint. Das Begleitmaterial zeigte im Shop sonst die Kennung. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4520dba2f0
commit
9701777011
3 files changed
+40
-7
No files matched your search
@@ -8,7 +8,6 @@
|
||||
use App\Domain\Catalog\BundleStatus;
|
||||
use App\Domain\Catalog\BundleVersion;
|
||||
use App\Domain\Catalog\DomainRuleException;
|
||||
use App\Domain\Catalog\EditorialProfileReader;
|
||||
use App\Domain\Catalog\LicenseArticle;
|
||||
use App\Domain\Catalog\Offer;
|
||||
use App\Domain\Catalog\OfferService;
|
||||
@@ -17,6 +16,7 @@
|
||||
use App\Domain\Catalog\StatusValue;
|
||||
use App\Domain\Cms\Catalog\PublicCatalogReader;
|
||||
use App\Domain\Commerce\Money;
|
||||
use App\Domain\Commerce\ProductOptions;
|
||||
use App\Filament\Resources\LicenseArticles\LicenseArticleResource;
|
||||
use App\Filament\Resources\Offers\OfferResource;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
@@ -62,9 +62,7 @@ public function articleLabel(LicenseArticle $article): string
|
||||
/** Name wie in der Redaktion: eigener Name oder Name des Inhalts, sonst der Arbeitstitel; leer ohne beides. */
|
||||
public function articleName(LicenseArticle $article): string
|
||||
{
|
||||
$name = app(EditorialProfileReader::class)->read($article, 'artikel')->value('display_title');
|
||||
|
||||
return trim((string) (filled($name) ? $name : $article->working_title));
|
||||
return app(ProductOptions::class)->articleName($article);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user