Opened 12 years ago
Closed 12 years ago
#22489 closed defect (bug) (duplicate)
If no pages, except for the Sample page, exist, automatically creating a new page fails when enabling a static front page.
Reported by: | ldebrouwer | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.5 |
Component: | General | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
If no pages, except for the Sample page, exist, automatically creating a new page fails when enabling a static front page. This is due to $_POST[ 'page_on_front' ] not existing and not having the value "new".
How to reproduce:
- Install a fresh checkout of trunk.
- Go to Setting > Reading
- Check "Show a page instead of your latest posts"
- Hit "Save changes"
Attachments (1)
Change History (3)
#1
@
12 years ago
Also reported in ticket:16379:84 and can be fixed with ticket:16379:16379.9.patch.
However, the UI may be changed again soon, so the fix wasn't committed yet.
Note: See
TracTickets for help on using
tickets.
This fixes the problem. It creates a hidden input "page_on_front" with value "new".