Commit 5f80b1d8 authored by Fabian Galinski's avatar Fabian Galinski 😾

[BUGFIX] The visibility settings of the backend language table isn't working

parent 6ed60963
......@@ -310,7 +310,7 @@ abstract class Element {
foreach ($availablesLanguages as $language) {
$flagRow = $visibilityFlagRepository->getVisibilityFlag(
$table, $this->getUid(), $language->getLanguageId()
$table, $this->getUid(), $language->getLanguageId(), TRUE
);
if ($flagRow === FALSE || $flagRow === NULL) {
......
......@@ -124,11 +124,12 @@ class VisibilityFlagRepository implements SingletonInterface {
* @param string $table
* @param int $recordUid
* @param int $languageUid
* @param bool $ignoreCache
* @return array|NULL
* @throws DBALException
*/
public function getVisibilityFlag($table, $recordUid, $languageUid): ?array {
if ($this->cachedFlags === NULL) {
public function getVisibilityFlag($table, $recordUid, $languageUid, $ignoreCache = FALSE): ?array {
if ($ignoreCache || $this->cachedFlags === NULL) {
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
->getConnectionForTable('tx_languagevisibility_visibility_flag');
$results = $queryBuilder->prepare(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment