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

[BUG] record.taxonomy data is different under preview. #6293

Closed
graham73may opened this issue Jan 24, 2017 · 1 comment
Closed

[BUG] record.taxonomy data is different under preview. #6293

graham73may opened this issue Jan 24, 2017 · 1 comment

Comments

@graham73may
Copy link
Contributor

Details

  • Relevant Bolt Version: 3.2.6
  • Install type: Composer install
  • PHP version: 7.0.9
  • Used web server: Apache

Reproduction

  1. Bug summary:
    record.taxonomy arrays return differently in preview mode, in turn breaking taxonomies outputs in theme files.

  2. Specifics:
    setFromPost() at
    C:/MAMP/htdocs/nuffieldtrust.org.uk/vendor/bolt/bolt/src/Controller/Frontend.php::210

Combined with the taxonomy loop at
C:/MAMP/htdocs/nuffieldtrust.org.uk/vendor/bolt/bolt/src/Storage/Entity/ContentValuesTrait.php::482

  1. Steps to reproduce:
    Create a taxonomy with terms that have multiple words, tag some content.
    Dump out record.taxonomy to see the values don't match up.

This in turn is causing issues as record.taxonomy is being used to show taxonomies and breaks under preview.

  1. Expected result:
    To receive the same array values as when viewing a published item .

image

  1. Actual result:
    The "slug" values of each taxonomy are returned / displayable.

image

@bobdenotter
Copy link
Member

Duplicate of #6260, although this one has more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants