Skip to content

Commit

Permalink
fix: Fixed an issue where an exception would be thrown if the Campaig…
Browse files Browse the repository at this point in the history
…n plugin was installed first, and then you newly installed SEOmatic ([#1530](#1530))
  • Loading branch information
khalwat committed Oct 29, 2024
1 parent cf02829 commit 2591852
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/seoelements/SeoCampaign.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ public static function sourceHandleFromElement(ElementInterface $element)
public static function createContentMetaBundle(Model $sourceModel)
{
/** @var CampaignTypeModel $sourceModel */
$sourceModel->attachBehavior('SEOmaticCampaignBehavior', CampaignBehavior::class);
$sites = Craft::$app->getSites()->getAllSites();
/** @var Site $site */
foreach ($sites as $site) {
Expand Down

0 comments on commit 2591852

Please sign in to comment.