code4romania / code4romania/website-factory

Issue with draft pages as parents

Open
#375 0 comments 0 reactions 1 assignee Claimed by @overeha View on GitHub
bug :bug:
Dominant language
PHP
Stars
26
Forks
18
Avg merge
1m
Merged PRs (30d)
14

Description

When trying to set a draft page as the parent for another page, a `500` is thrown.
No error is thrown if a published page is unpublished.
This applies to both published and draft child pages.

The proper behaviour should probably be one of the following:
- [ ] a page with children shouldn't be unpublished
- [ ] pages can have a draft parent

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.