mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
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).
485 B
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 servevia scripts/migrate.sh - Fix wrong
require_oncedepth inpublic/admin/actions/page.php(../../→../../../) - Fix same path depth bug in
formulaire.phpandpublish.php - Fix CSV import: imported theses not visible on public site (is_published defaulted to 0, access_type_id never set)