area17 / twill

Twill is an open source CMS toolkit for Laravel that helps developers rapidly create a custom admin console that is intuitive, powerful and flexible. Chat with us on Discord at https://discord.gg/cnWk7EFv8R.
https://twillcms.com
Apache License 2.0
3.8k stars 577 forks source link

Draft in nested modules #1636

Open thingasd opened 2 years ago

thingasd commented 2 years ago

Description

Missing draft in nested modules, the number of draft is correct but the table does not show all the drafts

Steps to reproduce

Create unpublished children using nested module, with parent is published image

Expected result

All drafts should be shown

Actual result

Only one draft is shown image Work normally when parent is unpublished image

Versions

thingasd commented 2 years ago

Same issue in other filters. Seems caused by the toTree() in transformIndexItem used by NestedModule Controller. The filtered items not having parent get removed by toTree