mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-08-10 07:11:18 +02:00
fix: CSV import VALUES placeholder count mismatch (27 values for 26 columns)
This commit is contained in:
@@ -6,3 +6,4 @@
|
|||||||
- [x] Fix orientation (and other filter) metadata links on TFE page leading to empty search: remove redundant `query=` param
|
- [x] Fix orientation (and other filter) metadata links on TFE page leading to empty search: remove redundant `query=` param
|
||||||
- [x] Fix language metadata link using wrong `query=` param instead of dedicated `language=` filter
|
- [x] Fix language metadata link using wrong `query=` param instead of dedicated `language=` filter
|
||||||
- [x] Sort TFE files by display category on public page (note d'intention → TFE → image → video → audio → website → annexes)
|
- [x] Sort TFE files by display category on public page (note d'intention → TFE → image → video → audio → website → annexes)
|
||||||
|
- [x] Fix CSV import: VALUES had 24 ? placeholders but execute array has 23 values → 27 total for 26 columns
|
||||||
|
|||||||
@@ -367,7 +367,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_FILES['csv_file'])) {
|
|||||||
objet, contact_visible,
|
objet, contact_visible,
|
||||||
duration_pages, duration_minutes, has_annexes,
|
duration_pages, duration_minutes, has_annexes,
|
||||||
is_published, status, submitted_at
|
is_published, status, submitted_at
|
||||||
) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,'active',CURRENT_TIMESTAMP)
|
) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,'active',CURRENT_TIMESTAMP)
|
||||||
");
|
");
|
||||||
$s->execute([
|
$s->execute([
|
||||||
!empty($identifier) ? $identifier : null, $title,
|
!empty($identifier) ? $identifier : null, $title,
|
||||||
|
|||||||
Reference in New Issue
Block a user