Issue Bug Resolved

#100638setIgnoreEnableFields() does not work on language overlays

Alexander Köberl 04/17/23, 14:12 updated 09/02/26, 09:05

Description

setIgnoreEnableFields() just does still not work on language overlays. Simple code example is:

$query = $this->createQuery();
$query->setOrderings(['sorting' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING]);
$query->getQuerySettings()->setIgnoreEnableFields(true);
return $query->execute();

shows hidden records in default language, does not show hidden records in foreign languages.
Found 2 very old issues for the same issue:

related to https://forge.typo3.org/issues/68672
related to https://forge.typo3.org/issues/73007

Reviews 2

Files 2

History 1014

  1. Alexander Köberl commented and changed attached FireShot2.png <span data-processor="relativetime" data-value="2023-04-17T14:23:00+00:00" > 04/17/23, 14:23 </span>

    The count() method delivers weird results. The hidden items are counted, but not included in the output, item is missing.
    the first var_dump is $query->execute()->count(), the second is $query->execute()

    FireShot2.png

  2. Alexander Köberl commented and changed attached FireShot1.png <span data-processor="relativetime" data-value="2023-04-17T14:26:25+00:00" > 04/17/23, 14:26 </span>

    compared to the default language output (1 hidden also included in var_dump, id 50)

    FireShot1.png

  3. Michael Sollmann commented <span data-processor="relativetime" data-value="2025-03-17T12:34:21+00:00" > 03/17/25, 12:34 </span>

    Can confirm this behaviour for TYPO3 12.
    Any news on this?

  4. Benjamin Kott commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-09-02T09:05:09+00:00" > 09/02/26, 09:05 </span>

    Applied in changeset commit:d55582375a97552da1905603c5c3972c5d739ac8.