Files
xamxam/TODO.md
Pontoporeia 877e322568 fix(import): set is_published=1 and map access_type_id on CSV import
Imported theses were invisible on the public site because:
1. is_published defaulted to 0 (schema default) — the INSERT never
   set it, so all imported rows stayed unpublished and were filtered
   out by v_theses_public (WHERE is_published = 1) and every public
   DB method.
2. The access column (CSV col 16 'Autorisation') was read into $access
   but never written to access_type_id — silently dropped.

Fix: INSERT now includes is_published = 1 and access_type_id (resolved
from access_types.name via ucfirst/strtolower normalisation, defaulting
to 1/Libre when the CSV cell is empty or unrecognised).
2026-04-01 15:55:12 +02:00

485 B

TODO

Fixes

  • Fix CSV import UNIQUE constraint crash: skip rows whose identifier already exists in DB
  • Auto-migrate both test.db and posterg.db on just serve via scripts/migrate.sh
  • Fix wrong require_once depth in public/admin/actions/page.php (../../../../../)
  • Fix same path depth bug in formulaire.php and publish.php
  • Fix CSV import: imported theses not visible on public site (is_published defaulted to 0, access_type_id never set)