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

TaxonomyService::getVocabulary does not respect context argument #28

Open
DrillSergeant opened this issue May 29, 2020 · 0 comments
Open

Comments

@DrillSergeant
Copy link
Contributor

Steps to reproduce:

  1. create a vocabulary (in my example called 'applications') and some taxonomies inside
  2. switch to another dimension and change the title of one taxonomy to something different
  3. access the taxonomie-nodes via fusion:
    ${q(Taxonomy.vocabulary('applications', site.context)).children()}

Expected behaviour:
You get the taxonomy-nodes of the current site-context (in the correct dimension)

Actual behaviour:
You get the taxonomy-nodes of the default site-context (in the default dimension)

Possible solution
I am quite sure the probem is that TaxonomyService::getVocabulary does not hand over the context argument when fetching the root-node. I will create a pull request to fix this.

Workaround
As a workaround in my fusion-code, I get the taxonomies meanwhile this way:
items = ${q(Taxonomy.root(site.context)).children('applications').children()}

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

1 participant