Skip to content

Commit

Permalink
Merge pull request #416 from juban/fix-missing-dynamic-custom-fields-…
Browse files Browse the repository at this point in the history
…objects

Fix #415 for missing dynamic custom fields
  • Loading branch information
Tam authored Apr 12, 2023
2 parents 19d1303 + ccef7af commit f5e2c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/data/SeoData.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ private function _getVariables ()

if ($this->_element !== null)
{
foreach ($this->_element->attributes() as $name)
foreach (array_keys($this->_element->fields()) as $name)
if ($name !== $this->_handle)
$variables[$name] = $this->_element->$name ?? null;

Expand Down

0 comments on commit f5e2c01

Please sign in to comment.