Comment: | Merge avec trunk |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA1: |
6e79e54ca7c6bd6e443848f3738fb57a |
User & Date: | bohwaz on 2018-11-26 22:54:03 |
Other Links: | branch diff | manifest | tags |
2018-12-06
| ||
15:28 | Merge de trunk vers dev check-in: 7bfce6c590 user: bohwaz tags: dev | |
2018-11-26
| ||
22:54 | Merge avec trunk check-in: 6e79e54ca7 user: bohwaz tags: dev | |
22:51 | Corrige bug "UNIQUE constraint failed: membres.email" lors de l'import de CSV check-in: 5160efccc2 user: bohwaz tags: trunk | |
22:39 | Correction bug "FOREIGN KEY constraint failed DELETE FROM compta_categories WHERE id = ?" à la suppression de catégorie qui a été liée par une cotisation check-in: ab04534d50 user: bohwaz tags: dev | |
Modified src/Makefile from [78b3f7812f] to [1650b4239f].
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | - + + + + - + |
|
︙ |
Modified src/config.dist.php from [4b1bdaf310] to [fd9bfab8c2].
︙ | |||
126 127 128 129 130 131 132 | 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 | - - + + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - + | */ //const ADMIN_URL = 'https://admin.garradin.chezmoi.tld/'; /** * Affichage des erreurs * Si "true" alors un message expliquant l'erreur et comment rapporter le bug s'affiche * en cas d'erreur. Sinon rien ne sera affiché. |
︙ | |||
193 194 195 196 197 198 199 | 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 | - + - + - + - + - + - + - + - + | * * Défaut : false */ const SMTP_HOST = false; /** * Port du serveur SMTP |
Modified src/include/init.php from [bfe2446b5f] to [b52a5657db].
︙ | |||
94 95 96 97 98 99 100 | 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | - + + + | 'CACHE_ROOT' => DATA_ROOT . '/cache', 'DB_FILE' => DATA_ROOT . '/association.sqlite', 'DB_SCHEMA' => ROOT . '/include/data/schema.sql', 'PLUGINS_ROOT' => DATA_ROOT . '/plugins', 'PREFER_HTTPS' => false, 'ALLOW_MODIFIED_IMPORT' => true, 'PLUGINS_SYSTEM' => '', |
︙ | |||
162 163 164 165 166 167 168 | 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | - + - + - + | { $classname = ltrim($classname, '\\'); if (array_key_exists($classname, self::$loaded)) { return true; } |
︙ | |||
210 211 212 213 214 215 216 | 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 | - - - - + + + + + + + + + + + - - + + - + + + + + + + + + + + + + + + + + + + + + + | // activer l'envoi de mails si besoin est if (MAIL_ERRORS) { ErrorManager::setEmail(MAIL_ERRORS); } |
︙ |
Modified src/include/lib/Garradin/Compta/Rapports.php from [193a79d665] to [4e82cf4b4a].
︙ | |||
333 334 335 336 337 338 339 | 333 334 335 336 337 338 339 340 341 342 343 344 345 | - + | continue; } foreach ($p['comptes'] as $id=>$solde) { if ($solde == 0) { |
Modified src/include/lib/Garradin/DB.php from [69073dd36f] to [41264a6c51].
︙ | |||
46 47 48 49 50 51 52 53 54 55 56 57 58 59 | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | + + + + | public function connect() { if (parent::connect()) { // Activer les contraintes des foreign keys $this->db->exec('PRAGMA foreign_keys = ON;'); // 10 secondes $this->db->busyTimeout(10 * 1000); $this->db->exec('PRAGMA journal_mode = TRUNCATE;'); $this->db->createFunction('transliterate_to_ascii', ['Garradin\Utils', 'transliterateToAscii']); } } public function close() { parent::close(); |
︙ |
Modified src/include/lib/Garradin/Membres.php from [3d4bebf63e] to [b2dcaceab5].
︙ | |||
92 93 94 95 96 97 98 99 100 101 102 103 104 105 | 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | + + + + + | { $data[$key] = 0; } } elseif ($config->type == 'email') { $data[$key] = strtolower($data[$key]); if (!SMTP::checkEmailIsValid($data[$key], false)) { throw new UserException(sprintf('Adresse email invalide "%s" pour le champ "%s".', $data[$key], $config->title)); } } elseif ($config->type == 'select' && !in_array($data[$key], $config->options)) { throw new UserException('Le champ "' . $config->title . '" ne correspond pas à un des choix proposés.'); } elseif ($config->type == 'multiple') { |
︙ | |||
158 159 160 161 162 163 164 | 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | - + | { throw new UserException('Ce numéro de membre est déjà attribué à un autre membre.'); } } $this->_checkFields($data, true, $require_password); |
︙ |
Modified src/include/lib/Garradin/Membres/Import.php from [f63328115c] to [e0ef7a7acb].
︙ | |||
62 63 64 65 66 67 68 | 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | - + | /** * Importer un CSV générique * @param string $path Chemin vers le CSV * @param array $translation_table Tableau indiquant la correspondance à effectuer entre les colonnes * du CSV et les champs de Garradin. Par exemple : ['Date création fiche' => 'date_inscription'] * @return boolean TRUE en cas de succès */ |
︙ | |||
124 125 126 127 128 129 130 131 132 | 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | + + + + + + + + + + + + + + + + + + + + + + - + + | } } else { $data[$garradin_field] = $row[$column_index]; } } if (!empty($data['numero']) && $data['numero'] > 0) { $numero = (int)$data['numero']; } else { unset($data['numero']); $numero = false; } try { if ($numero && ($id = $membres->getIDWithNumero($numero))) { if ($id === $current_user_id) { // Ne pas modifier le membre courant, on risque de se tirer une balle dans le pied continue; } $membres->edit($id, $data); } else { |
︙ |
Modified src/include/lib/Garradin/Template.php from [1f698e9c13] to [808469b185].
︙ | |||
64 65 66 67 68 69 70 71 72 73 74 75 76 | 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | + - + | $this->register_function('format_droits', [$this, 'formatDroits']); $this->register_function('csrf_field', function ($params) { return Form::tokenHTML($params['key']); }); $this->register_modifier('strlen', 'strlen'); $this->register_modifier('dump', ['KD2\ErrorManager', 'dump']); $this->register_modifier('get_country_name', ['Garradin\Utils', 'getCountryName']); $this->register_modifier('format_sqlite_date_to_french', ['Garradin\Utils', 'sqliteDateToFrench']); $this->register_modifier('format_bytes', ['Garradin\Utils', 'format_bytes']); $this->register_modifier('format_tel', [$this, 'formatPhoneNumber']); $this->register_modifier('abs', 'abs'); $this->register_modifier('display_champ_membre', [$this, 'displayChampMembre']); |
︙ |
Modified src/templates/admin/config/_menu.tpl from [53db92aa96] to [cd582bc2fa].
1 2 3 4 5 6 7 8 | 1 2 3 4 5 6 7 8 9 | + | <ul class="actions"> <li{if $current == 'index'} class="current"{/if}><a href="{$admin_url}config/">Général</a></li> <li{if $current == 'categories'} class="current"{/if}><a href="{$admin_url}config/categories/">Catégories de membres</a></li> <li{if $current == 'fiches_membres'} class="current"{/if}><a href="{$admin_url}config/membres.php">Fiche des membres</a></li> <li{if $current == 'site'} class="current"{/if}><a href="{$admin_url}config/site.php">Site public</a></li> <li{if $current == 'donnees'} class="current"{/if}><a href="{$admin_url}config/donnees/">Sauvegarde et restauration</a></li> <li{if $current == 'plugins'} class="current"{/if}><a href="{$admin_url}config/plugins.php">Extensions</a></li> <li{if $current == 'logs'} class="current"{/if}><a href="{$admin_url}config/logs.php">Journaux</a></li> </ul> |
Added src/templates/admin/config/logs.tpl version [bdfa29c9cf].