mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +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).