Skip to content

Commit

Permalink
Merge pull request #456 from ttempleton/v4
Browse files Browse the repository at this point in the history
Fix for error when using SEO field on Shopify product
  • Loading branch information
Tam authored Aug 18, 2023
2 parents a9a6c9c + f1934c1 commit 215d51c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fields/SeoField.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use craft\helpers\UrlHelper;
use craft\helpers\Html;
use craft\models\Section;
use craft\shopify\elements\Product as ShopifyProduct;
use ether\seo\models\data\SeoData;
use ether\seo\Seo;
use ether\seo\web\assets\SeoFieldAsset;
Expand Down Expand Up @@ -243,7 +244,7 @@ public function getInputHtml (mixed $value, ?\craft\base\ElementInterface $eleme

if ($element instanceof Category)
$renderData['groupId'] = $element->groupId;
elseif ($element instanceof GlobalSet)
elseif ($element instanceof GlobalSet || $element instanceof ShopifyProduct)
$renderData['typeId'] = null;
elseif ($isCalendar)
$renderData['calendarId'] = $element->calendarId;
Expand Down

0 comments on commit 215d51c

Please sign in to comment.