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

Fix showing of ghost locale identicator for Example #239

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

alexander-schranz
Copy link
Member

The ghostLocale identicator is currently show always for the ExampleTestBundle but should only be shown when it was not yet translated into that language. This adopt the query for not give back a ghostLocale if current locale is available.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 4501078881

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 4477935009: 0.0%
Covered Lines: 2392
Relevant Lines: 2392

💛 - Coveralls

@@ -25,7 +25,7 @@
<entity-name>ghostDimensionContent</entity-name>
<field-name>Sulu\Bundle\ContentBundle\Tests\Application\ExampleTestBundle\Entity\Example.dimensionContents</field-name>
<method>LEFT</method>
<condition>ghostDimensionContent.locale = unlocalizedDimensionContent.ghostLocale AND ghostDimensionContent.stage = 'draft'</condition>
<condition>dimensionContent.locale IS NULL AND ghostDimensionContent.locale = unlocalizedDimensionContent.ghostLocale AND ghostDimensionContent.stage = 'draft'</condition>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the ref= here would have a requiremend to unlocalizedDimensionContent and to dimensionContent join but we are currently not supporting soemthing like ref="dimensionContent, unlocalizedDimensionContent" or is there other way to reference other joins in here? Maybe a <join-ref name="" /> instead of ref attribute would make sense here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm not possible currently like the idea of an own node but would put that into the joins node:

<joins>
  <joins ref="...."/>
  <joins ref="...."/>
  <join ...></join>
</joins>

@alexander-schranz alexander-schranz added the Bug Error or unexpected behavior of already existing functionality label Mar 23, 2023
@alexander-schranz alexander-schranz changed the title Fix showing of ghost locale identicator Fix showing of ghost locale identicator for Example Mar 23, 2023
@wachterjohannes wachterjohannes merged commit 32470e1 into sulu:0.x Mar 23, 2023
@alexander-schranz alexander-schranz deleted the bugfix/ghost-locale-fix branch March 23, 2023 13:30
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

Successfully merging this pull request may close these issues.

3 participants