Skip to content

Commit

Permalink
Merge pull request #372 from AcclaroInc/bug/371/seo-image-missing-fro…
Browse files Browse the repository at this point in the history
…m-draft

Bug/371/seo image missing from draft
  • Loading branch information
shnsumit authored Jul 28, 2022
2 parents 25d7a6d + e429900 commit 4406cc1
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/services/fieldtranslator/SeomaticMetaFieldTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,8 @@ public function toPostArray(ElementTranslator $elementTranslator, Element $eleme

$meta = $element->getFieldValue($fieldHandle);

$source = array();
$source[$fieldHandle] = $field->serializeValue($meta);

if( $meta )
{
foreach($meta->metaGlobalVars as $key => $value)
{
$source[$fieldHandle]['metaGlobalVars'][$key] = $value;
}
}

return $source;
}

Expand Down

0 comments on commit 4406cc1

Please sign in to comment.