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

В виджете списка контента нет фильтрации по скрытым родителям #1503

Open
zau4man opened this issue May 16, 2024 · 0 comments

Comments

@zau4man
Copy link
Contributor

zau4man commented May 16, 2024

Используемая версия InstantCMS: 2.16.3

Как воспроизвести проблему:

  • создать запись в закрытой группе
  • в списке записей она не видна
  • в списке записей в виджете видна

Снимок экрана 2024-05-16 111525
Отличаются запросы только добавкой AND (i.is_parent_hidden IS NULL)

Предположение: Надо добавить в

по аналогии с getContentItemsCount строчку
if (!$this->hidden_parents_filter_disabled) { $this->filterHiddenParents(); }

Тогда фильтрация будет работать одинаково и в типе контента, и в виджете список контента.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant