Skip to content

Formatted Text values ignore langBlankInherit #1872

Open
@mpsn

Description

@mpsn

Short description of the issue

We've been using langBlankInherit=false to only display repeaters for languages where the title is set.
As of 3.0.229 this no longer works while output formatting is active.

The only changes to language and textfields i could find were some minor refinements and some textformatting, but so far failed to see where exactly that option gets lost.

Old loop, ≤3.0.210

foreach($repeater as $item){
  # returning default language value as of 3.0.229
  $localtitle = $item->getLanguageValue($user->language, 'title');
  if(!$localtitle)
    continue; 
}

Workaround

foreach($repeater as $item){
  $of = $item->of(false);
  # yay - working again
  $localtitle = $item->getLanguageValue($user->language, 'title');
  if(!$localtitle)
    continue;
  $item->of($of);
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions