Overview
Comment: | Fix orthographe, signalé par @Jean-Christophe |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA1: |
9064396ec5afbd51611bb250058bb2e8 |
User & Date: | bohwaz on 2020-06-16 13:07:15 |
Other Links: | manifest | tags |
Context
2020-06-22
| ||
23:32 | Correction du format des champs de type date et datetime dans les fiches membre check-in: 15c085059e user: bohwaz tags: trunk | |
2020-06-16
| ||
13:07 | Fix orthographe, signalé par @Jean-Christophe check-in: 9064396ec5 user: bohwaz tags: trunk, stable | |
2020-06-13
| ||
21:41 | Ajouter autocomplete=off partout pour contourner souci de complétion chez Chrome (tentative) check-in: 7707f4c88b user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Membres.php from [e1601c51c0] to [06d3eb225c].
︙ | ︙ | |||
146 147 148 149 150 151 152 | } } $this->_checkFields($data, true, $require_password); if (isset($data[$id]) && $db->test('membres', $id . ' = ? COLLATE NOCASE', $data[$id])) { | | | 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | } } $this->_checkFields($data, true, $require_password); if (isset($data[$id]) && $db->test('membres', $id . ' = ? COLLATE NOCASE', $data[$id])) { throw new UserException('La valeur du champ '.$id.' est déjà utilisée par un autre membre, or ce champ doit être unique à chaque membre.'); } if (isset($data['passe']) && trim($data['passe']) != '') { Session::checkPasswordValidity($data['passe']); $data['passe'] = Session::hashPassword($data['passe']); } |
︙ | ︙ | |||
185 186 187 188 189 190 191 | $this->_checkFields($data, $check_editable, false); $champ_id = $config->get('champ_identifiant'); if (!empty($data[$champ_id]) && $db->firstColumn('SELECT 1 FROM membres WHERE '.$champ_id.' = ? COLLATE NOCASE AND id != ? LIMIT 1;', $data[$champ_id], (int)$id)) { | | | 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | $this->_checkFields($data, $check_editable, false); $champ_id = $config->get('champ_identifiant'); if (!empty($data[$champ_id]) && $db->firstColumn('SELECT 1 FROM membres WHERE '.$champ_id.' = ? COLLATE NOCASE AND id != ? LIMIT 1;', $data[$champ_id], (int)$id)) { throw new UserException('La valeur du champ '.$champ_id.' est déjà utilisée par un autre membre, or ce champ doit être unique à chaque membre.'); } if (isset($data['numero'])) { if (!preg_match('/^\d+$/', $data['numero'])) { throw new UserException('Le numéro de membre ne doit contenir que des chiffres.'); |
︙ | ︙ |