SpinaCMS / Spina

Spina CMS
http://www.spinacms.com
Other
2.2k stars 408 forks source link

Fix view templates hiding based on associated pages being non-deletable #1371

Closed Billiam closed 4 months ago

Billiam commented 6 months ago

Context

This is a fix for #1241, where view templates which have been associated with non-deletable pages will not appear in view template lists for new pages, or moving pages

Removes the condition that prevents view templates from being available to associate with new or edited pages.

Changes proposed in this pull request

Remove the 'is associated with a non-deletable page' condition from the new_page_templates method

Guidance to review

This may be considered a breaking change, since existing view templates would need to update their exclude_from array in order to be hidden in the view templates list

stale[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.