Skip to content

Product tags empty on product page. (ObjectPresenter and multidimensional attribute) #21893

@lusimeon

Description

@lusimeon

Describe the bug

Product tags are empty when using ObjectPresenter (Product page for example).

This is due to a non-recursive loop in ObjectPresenter. Traversable attributes aren't successfully transformed.

I've tested it on 1.7.6.4 Prestashop version but I think it's still relevant in the latest version.

Expected behavior

An array of tags

Steps to Reproduce

Steps to reproduce the behavior:

  1. Dump $product.tags on web/themes/foo/templates/catalog/product.tpl
  2. Go on product page

Additional information

  • PrestaShop version: 1.7.6.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.7.6.4Affects versionsBugType: BugFOCategory: Front OfficeMinorSeverity: minor bug > https://build.prestashop.com/news/severity-classificationNeeds SpecsStatus: issue needs to be specifiedVerifiedThe issue has been reproducedWaiting for PMStatus: action required, waiting for product feedback

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions