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

Uploading multiple files in files section - incorrect sort number #6380

Closed
janherman opened this issue Apr 5, 2024 · 0 comments · Fixed by #6429
Closed

Uploading multiple files in files section - incorrect sort number #6380

janherman opened this issue Apr 5, 2024 · 0 comments · Fixed by #6429
Assignees
Labels
type: regression 🚨 Is a regression between versions
Milestone

Comments

@janherman
Copy link

Description

I have a files section with manual sorting enabled. In Kirby 3, when I upload multiple files, a correct sort number is inserted in file’s content file. That means the first uploaded file gets number 1, the second number 2 etc.

However, when I try the same in Kirby 4 (4.1.2), all files get the same sort number (it seems like the resulting sort number follows the formula = number of files + 1). After manually rearranging some of the files, those affected files get a new sort number. The rest remain untouched.

Expected behavior
Each file should get a correct sort number.

To reproduce

I used clean plainkit with files section in site.yml:

title: Site

sections:
  pages:
    type: pages
  files:
    type: files
    label: "Testing files"

I uploaded three images at once. All images get the same sorting number. In this case it is number 4.

Your setup

Kirby Version: 4.1.2

Your system

  • Device: Laptop
  • OS: Windows 10
  • Browser: Mozilla Firefox
  • Version: 125.0b8
@distantnative distantnative added type: bug 🐛 Is a bug; fixes a bug type: regression 🚨 Is a regression between versions and removed type: bug 🐛 Is a bug; fixes a bug labels May 1, 2024
@distantnative distantnative self-assigned this May 1, 2024
@distantnative distantnative added this to the 4.2.1 milestone May 1, 2024
@distantnative distantnative linked a pull request May 1, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: regression 🚨 Is a regression between versions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants