Reusable widgets can't be created when live previews are disabled

Created on 11 June 2021, over 3 years ago
Updated 28 November 2023, about 1 year ago

Problem/Motivation

When live previews are disabled, it's impossible to create a new reusable widget because something about the validation of the admin title isn't working. Discovered while testing #3081254: Specify default configurations in Behat test suite β†’ which will default all Behat tests to run with live previews off unless live preview is specifically being tested.

Steps to reproduce

  1. Install Panopoly version 1.81 including demo content.
  2. Log in as an administrator.
  3. Set Panopoly Magic live previews to Disabled at /admin/panopoly/settings/panopoly_magic
  4. Create a landing page.
  5. Customize the landing page with the IPE.
  6. Choose Add Text from the Add Content dialog.
  7. Fill in the widget title, widget text, and admin title.
  8. Check the box to make the widget reusable.
  9. Press Add.
  10. Note the error message appears: If you would like this entity to be reusable, please add a title.

Screenshot from a local test run:

Proposed resolution

Fix the field validation so it works whether or not live previews are enabled.

Remaining tasks

Fix the field validation so it works whether or not live previews are enabled.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Magic

Created by

πŸ‡ΊπŸ‡ΈUnited States cboyden

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024