As a user, Scaffolding should show a warning/error when the space-keys on the content-option do not match

Steps to replicate:

  1. Add a list-data -> content-options to the page.
  2. Within the content-options, configure the space field to have a non-existent space key, while the parent field has the correct space-key (see content1.png)
  3. Save the page, and the content-options still work, meaning that it is showing the correct list of pages (see content2.png)

When using the PUT REST API to update the content-options, the result will return an Invalid options for macro "Link" error.

The error is caused by the invalid space-key on the space field of content-options.  Once a user updated the space field with the correct space-key (image content3.png), there will be no error when using the PUT REST API. 

One way to improve this is to have a validation to check if the space-keys are identical.  That validation is to show a warning sign if the space-keys do not match.  

  • Immanuel Siagian
  • Feb 6 2020
  • Needs review
Hosting platform Server
  • Attach files
  • +2