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

[stable28] fix: use filename to find current index #2118

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

backportbot-nextcloud[bot]
Copy link

Backport of #2112

The viewer component is usually used with a folder and the basename unique.
However in photos, the fileList contains objects from multiple folders and the basename is not always unique.

How to reproduce:

- Create folder A and B
- Upload an image to folder A and name it "Test"
- Upload another image to folder B and also name it "Test"
- Open photos
- Click on the image from folder B
- The image from folder A is shown

To find the correct "currentIndex" we need filename (including the path).

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@backportbot-nextcloud backportbot-nextcloud bot added the enhancement New feature or request label Jan 9, 2024
@backportbot-nextcloud backportbot-nextcloud bot added this to the Nextcloud 28.0.2 milestone Jan 9, 2024
@skjnldsv
Copy link
Member

skjnldsv commented Jan 9, 2024

/compile

@skjnldsv skjnldsv added the 3. to review Waiting for reviews label Jan 9, 2024
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@skjnldsv skjnldsv merged commit a0a445c into stable28 Jan 17, 2024
33 checks passed
@skjnldsv skjnldsv deleted the backport/2112/stable28 branch January 17, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants