#Enabling drafts after collection has items causes items to not show on admin panel

9 messages · Page 1 of 1 (latest)

noble lintel
#

If I…

  1. Create a collection
  2. Add new items to this collection
  3. Enable drafts in the collection

The items disappear from the admin panel under that collection. If I comment out “drafts: true”, the items show up again.

Im using mongodb.

Can anyone help?

torpid skyBOT
#
meager lynx
#

you need to resave the items

noble lintel
ancient pivot
#

after that, you can remove it from your onInit or comment it out. this will update all your collection items to have the new _status field populated, which will make them show up again in your list view

noble lintel
#

@ancient pivot thanks a ton! You rock!

#

(also, maybe payload should handle this internally?)

meager lynx