Skip to content

Changelog for first revision is hardcoded as "initial revision" and not respecting the given changelog #5056

Closed
@Man-in-Black

Description

@Man-in-Black

Describe the Bug

If you set a changelog on the first revision of a page, eg. "Test", this gets not respected and will be overwritten by "intitial revision".
I've found the hardcoded part in the /var/www/bookstack/app/Entities/Repos/PageRepo.php on line 80.

Steps to Reproduce

  1. create a page and put in some content
  2. insert a changelog "Test"
  3. save the page
  4. review the revisions and you will see "initital revision"

Expected Behaviour

The revision should contain the given changelog if set.
if no changelog is set then the default would be fine.

Screenshots or Additional Context

image
Here I put in "Rollenbeschreibung erstellt" as a changelog, but it wasn't stored.

Browser Details

No response

Exact BookStack Version

24.02

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions