apostrophecms/apostrophe-events

Extending events widget and using addFields breaks max limit fields

Opened this issue · 2 comments

abea commented

Having an addFields property in a module extending apos-events-widgets seems to break the limitByAll and limitByTag fields.

  label: 'Events',
  addFields: [
    {
      name: 'link',
      label: 'Link',
      type: 'singleton',
      widgetType: 'link'
    }
  ]
};

I'm getting some of the handy new warnings:

⚠️  widget type events, field name by:

showFields for the choice all includes limitByAll, a field that does not exist in the schema


⚠️  widget type events, field name by:

showFields for the choice tag includes limitByTag, a field that does not exist in the schema

Maybe worth double checking apos-blog?

Well I won't close it yet... please do link me up to a reproduction of the issue.