Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update time when gallery images are replaced #4354

Closed
toras9000 opened this issue Jul 1, 2023 · 1 comment
Closed

Update time when gallery images are replaced #4354

toras9000 opened this issue Jul 1, 2023 · 1 comment
Labels
Milestone

Comments

@toras9000
Copy link

Describe the Bug

I thought that was probably not the intended behavior, so I opened a ticket.
However, it is a trivial matter.

This is about replacing images in Image Gallery, which is supported in v23.06.
It appears that the updated date/time does not change when only replacing the image.

Steps to Reproduce

  1. Upload new images to the gallery.
  2. Perform "Replace Image" on the above image.
    • The update date/time is not displayed in the information area of the image.
    • If the image name is changed, the update date and time will be displayed.

The same is true when images are replaced by the API.

Expected Behaviour

Perhaps the renewal date and time should be changed.

Screenshots or Additional Context

My guess is that this may be because there is no change in the database entity for the image information when the same user who uploaded the original image only replaces the image content.
(updateImageFile() in ImageRepo.php)

Browser Details

No response

Exact BookStack Version

v23.06

PHP Version

No response

Hosting Environment

Docker image, lscr.io/linuxserver/bookstack:version-v23.06

@ssddanbrown ssddanbrown added this to the v23.06.1 milestone Jul 2, 2023
@ssddanbrown
Copy link
Member

Thank you very much for raising @toras9000.
This has now been addressed in 96819b7, and will be part of the next patch release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants