core icon indicating copy to clipboard operation
core copied to clipboard

Related content and default language

Open jkshapiro opened this issue 13 years ago • 7 comments

See https://groups.google.com/d/msg/dotcms/kf3pY5zFDNM/GttZVH5JvlEJ

Given the following conditions:

  1. Two structures have a relationship; one ("A") has content in both languages and the other ("B") only has content in the default language
  2. DEFAULTCONTENTTODEFAULTLANGUAGE is true

Then whenever we use pullRelated to obtain content of type B, we should obtain the content that exists, in the default language. Currently we obtain nothing.

jkshapiro avatar Mar 12 '13 19:03 jkshapiro

The fall through works for content placed on a page NOT for pulls right now. Currently this is intended.

jtesser avatar Mar 12 '13 19:03 jtesser

This continues to be an issue and is affecting customers in production

mattyarbrough avatar Aug 21 '19 13:08 mattyarbrough

@mattyarbrough please specify a version - is this true on the latest release?

wezell avatar Aug 21 '19 14:08 wezell

This is on 5.0.3, it's possible in 5.1+ to workaround with a condition parameter in the relationship

mattyarbrough avatar Aug 21 '19 14:08 mattyarbrough

I believe this is fixed in 5.2 - @erickgonzalez can you confirm?

wezell avatar Nov 07 '19 15:11 wezell

This is still an issue via ContentTool (velocity) but using the ContentResource it's working as it should, e.g. http://localhost:8080/api/content/render/false/depth/1/query/+identifier:2943b5eb-9105-4dcf-a1c7-87a9d4dc92a6 +languageId:2 pulls the parent content in Spanish and the relationship field shows the English since there is no version in Spanish.

erickgonzalez avatar Nov 07 '19 18:11 erickgonzalez

This issue has been automatically marked as stale because it has not had activity within the past 90 days. It will be closed in 30 days no further activity occurs. Thank you.

stale[bot] avatar Feb 05 '20 19:02 stale[bot]