Skip to content

Commit

Permalink
Revert array_filter to fix a regression
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Jan 23, 2024
1 parent 8401825 commit 99b84d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/sections/files.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,14 @@
'multiple' => $multiple,
'max' => $max,
'api' => $this->parent->apiUrl(true) . '/files',
'attributes' => [
'attributes' => array_filter([
// TODO: an edge issue that needs to be solved:
// if multiple users load the same section
// at the same time and upload a file,
// uploaded files have the same sort number
'sort' => $this->sortable === true ? $this->total + 1 : null,
'template' => $template
]
])
];
}
],
Expand Down

0 comments on commit 99b84d7

Please sign in to comment.