wintercms/winter

Failed to configure list setup in preview page

cheuklam opened this issue · 5 comments

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

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?

should we hide the list setup button in preview mode?

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

@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 ?

Closing as there has been no follow up. If the issue persists, please provide further context and we'll be happy to re-investigate.