[PR #1752] [MERGED] Feature: Move a page directly into a chapter of another book #5883

Closed
opened 2026-02-05 10:19:26 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/1752
Author: @philjak
Created: 10/28/2019
Status: Merged
Merged: 10/30/2019
Merged by: @ssddanbrown

Base: masterHead: feature_move_page_into_chapter


📝 Commits (2)

  • 4daeb9d Check if parent is a chapter. If so, move into Book and assing page to chapter.
  • 7368ff3 No need to save page

📊 Changes

1 file changed (+6 additions, -1 deletions)

View changed files

📝 app/Entities/Repos/PageRepo.php (+6 -1)

📄 Description

Currently, when you move a page, you get a list of Books and chapters. Unfortunately, if you choose a chapter as new destination for a page, you get an error, since currently only books as target are supported.

This PR allows you to move a page directly into a chapter by checking, if the parent is a Chapter. If so, the page will be assigned to the target chapter and moved to the corresponding book.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BookStackApp/BookStack/pull/1752 **Author:** [@philjak](https://github.com/philjak) **Created:** 10/28/2019 **Status:** ✅ Merged **Merged:** 10/30/2019 **Merged by:** [@ssddanbrown](https://github.com/ssddanbrown) **Base:** `master` ← **Head:** `feature_move_page_into_chapter` --- ### 📝 Commits (2) - [`4daeb9d`](https://github.com/BookStackApp/BookStack/commit/4daeb9daa6c980d97126293c972245d8e08711e8) Check if parent is a chapter. If so, move into Book and assing page to chapter. - [`7368ff3`](https://github.com/BookStackApp/BookStack/commit/7368ff3e6a00af5d9062d44172c6f45415277605) No need to save page ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `app/Entities/Repos/PageRepo.php` (+6 -1) </details> ### 📄 Description Currently, when you move a page, you get a list of Books and chapters. Unfortunately, if you choose a chapter as new destination for a page, you get an error, since currently only books as target are supported. This PR allows you to move a page directly into a chapter by checking, if the parent is a Chapter. If so, the page will be assigned to the target chapter and moved to the corresponding book. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 10:19:26 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5883