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

Только список без AdminEditHelper #93

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

nook-ru
Copy link
Contributor

@nook-ru nook-ru commented Apr 21, 2017

Столкнулся с ситуацией, когда нужен список без формы редактирования (вывод логов, например).

AdminInterface::helpers() в таком случае возвращает только AdminListHelper. Сейчас отсутствие хелпера для формы вызывает ошибку при построении списка записей.

@ASGAlex ASGAlex self-assigned this May 9, 2017
Copy link
Member

@ASGAlex ASGAlex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Работает, но только в случае, если нет вывода списка с категориями. Тестил на демке от Никиты.
Как только к списку добавляются категории, в работу включается AdminListHelper::getMixedData, который завязан на $elementEditHelperClass, которого, как указано выше, может и не быть. По-моему, здесь что-то не чисто, когда класс редактирования необходим при выводе списка. Вот это https://github.com/DigitalWand/digitalwand.admin_helper/blob/2.x/lib/helper/AdminListHelper.php#L1120 бы поправить для полноты багфикса.

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

Successfully merging this pull request may close these issues.

2 participants