plone.restapi icon indicating copy to clipboard operation
plone.restapi copied to clipboard

autoform directives.order not working anymore

Open cekk opened this issue 3 years ago • 1 comments

I've found that changes made here have a side effect: custom fields sorting are not working retrieving types schema.

How to reproduce:

  • create a content with schema interface
  • move a field before another one from a behavior (directives.order_after(my_field="ILeadImageBehavior.image_caption"))

If you call @types/MyType restapi endpoint, image_caption is after my_field. If you go in edit from Plone classic interface, image_caption is before my_field.

Removing ignorePrefix=True seems fixing this issue but reverts the old one.

@avoinea any ideas?

cekk avatar Sep 20 '21 14:09 cekk