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

Failed to configure list setup in preview page #1145

Open
cheuklam opened this issue Jun 11, 2024 · 4 comments
Open

Failed to configure list setup in preview page #1145

cheuklam opened this issue Jun 11, 2024 · 4 comments

Comments

@cheuklam
Copy link

Winter CMS Build

dev-develop

PHP Version

8.1

Database engine

MySQL/MariaDB

Plugins installed

No response

Issue description

image

relation widget cannot change setup in preview mode.

Steps to replicate

  1. preview any manage view
  2. click on the list setup button on any relation controller widget
  3. change order / check / uncheck items
  4. Apply

Workaround

Dont use preview mode, use edit mode

@LukeTowers
Copy link
Member

This is probably caused because the relationcontroller would be in readOnly mode in the preview context, which might be causing the widget to not be bound correctly. @mjauvin is this something you can take a look at?

@mjauvin mjauvin self-assigned this Jul 3, 2024
@mjauvin
Copy link
Member

mjauvin commented Jul 3, 2024

should we hide the list setup button in preview mode?

@LukeTowers
Copy link
Member

@mjauvin ideally we fix it so that it works correctly, you would still want to use it in preview mode.

@mjauvin
Copy link
Member

mjauvin commented Jul 3, 2024

@cheuklam I tried to reproduce on a model preview with a relation controller and it's working fine for me. Can you explain how you render the relation controller ?

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

No branches or pull requests

3 participants