Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart content properties mapping should not fail with not exist property #53

Closed
alexander-schranz opened this issue Oct 15, 2020 · 1 comment
Labels
bug Error or unexpected behavior of already existing functionality

Comments

@alexander-schranz
Copy link
Member

Not all templates have the same properties but sometimes you need to load a property in smart content which could maybe not exist in all. Currently the headless bundle fail if a property is configured in pages smart content which does not exist in all templates e.g.:

<property name="pages" type="smart_content">
    <params name="properties" type="collection">
          <param name="name" value="name" />
    </params>
</property>

Failing line:

$property = $structure->getProperty($sourceProperty);

@alexander-schranz alexander-schranz added the bug Error or unexpected behavior of already existing functionality label Oct 15, 2020
@niklasnatter
Copy link
Contributor

Fixed by #95

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Error or unexpected behavior of already existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants