Overview
Comment: | Suppression clés de config non utilisées |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA1: |
09e570ec231f7d4fca579f63fb724a86 |
User & Date: | bohwaz on 2020-04-20 01:03:46 |
Other Links: | branch diff | manifest | tags |
Context
2020-04-20
| ||
01:05 | Renommer les entités de compta, passer à l'anglais, simplifier (suppression des moyens de paiement, possibilité d'avoir plusieurs plans comptables, etc.) check-in: 9c856dd92c user: bohwaz tags: dev | |
01:03 | Suppression clés de config non utilisées check-in: 09e570ec23 user: bohwaz tags: dev | |
01:02 | Fix fonction input check-in: 1d5d060c5d user: bohwaz tags: dev | |
Changes
Modified src/include/lib/Garradin/Config.php from [a58d9a3e7d] to [0818359e22].
︙ | ︙ | |||
53 54 55 56 57 58 59 | 'monnaie' => $string, 'pays' => $string, 'champs_membres' => $object, 'categorie_membres' => $int, | < < < < | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | 'monnaie' => $string, 'pays' => $string, 'champs_membres' => $object, 'categorie_membres' => $int, 'accueil_wiki' => $string, 'accueil_connexion' => $string, 'frequence_sauvegardes' => $int, 'nombre_sauvegardes' => $int, 'champ_identifiant' => $string, 'champ_identite' => $string, 'version' => $string, 'couleur1' => $string, 'couleur2' => $string, 'image_fond' => $string, 'desactiver_site' => $bool, ]; $db = DB::getInstance(); $this->config = $db->getAssoc('SELECT cle, valeur FROM config ORDER BY cle;'); foreach ($this->config as $key=>&$value) |
︙ | ︙ | |||
299 300 301 302 303 304 305 | // Vérification que le champ est unique pour l'identifiant if ($key == 'champ_identifiant' && !$db->firstColumn('SELECT (COUNT(DISTINCT lower('.$value.')) = COUNT(*)) FROM membres WHERE '.$value.' IS NOT NULL AND '.$value.' != \'\';')) { throw new UserException('Le champ '.$value.' comporte des doublons et ne peut donc pas servir comme identifiant pour la connexion.'); } | < < < < < < < < < < < | 295 296 297 298 299 300 301 302 303 304 305 306 307 308 | // Vérification que le champ est unique pour l'identifiant if ($key == 'champ_identifiant' && !$db->firstColumn('SELECT (COUNT(DISTINCT lower('.$value.')) = COUNT(*)) FROM membres WHERE '.$value.' IS NOT NULL AND '.$value.' != \'\';')) { throw new UserException('Le champ '.$value.' comporte des doublons et ne peut donc pas servir comme identifiant pour la connexion.'); } break; } case 'categorie_membres': { $db = DB::getInstance(); if (!$db->firstColumn('SELECT 1 FROM membres_categories WHERE id = ?;', $value)) { |
︙ | ︙ |