Overview
Comment: | La première ligne contient parfois un seul champ vide quand la ligne est vide |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA1: |
7cc2708a5872034cf2f2139cd6bb6674 |
User & Date: | bohwaz on 2019-03-13 17:12:10 |
Other Links: | manifest | tags |
References
2020-12-08
| ||
23:25 | • Wiki page "Changelog/0.9" artifact: b9c916b4d1 user: bohwaz | |
Context
2019-03-13
| ||
17:15 | Vérifier aussi la première ligne sur l'import Citizen check-in: 2e7b29ce7e user: bohwaz tags: trunk, stable | |
17:12 | La première ligne contient parfois un seul champ vide quand la ligne est vide check-in: 7cc2708a58 user: bohwaz tags: trunk, stable | |
17:08 | Correctif pour la validation des champs de type select check-in: 49d6ec6970 user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Membres/Import.php from [db87ef00f2] to [7b54b35f93].
︙ | ︙ | |||
211 212 213 214 215 216 217 | if (empty($row)) { continue; } if ($line == 1) { | | | 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 | if (empty($row)) { continue; } if ($line == 1) { if (empty($row[0]) || !is_string($row[0]) || is_numeric($row[0])) { $db->rollback(); throw new UserException('Erreur sur la ligne 1 : devrait contenir l\'en-tête des colonnes.'); } $columns = array_flip($row); continue; |
︙ | ︙ |