Overview
SHA1:9031386c2177c43b56a82e070bb71a307051177d
Date: 2018-11-28 16:26:51
User: bohwaz
Comment:Ne pas vérifier l'email si vide
Timelines: family | ancestors | descendants | both | trunk | stable
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2018-11-28
16:36
[22ea488591] Corrige élément sélectionné dans les champs membres de type <select> (user: bohwaz, tags: trunk, stable)
16:26
[9031386c21] Ne pas vérifier l'email si vide (user: bohwaz, tags: trunk, stable)
2018-11-26
23:38
[05bc8a812e] Fix: recherche avancée de champ valeur multiple (user: bohwaz, tags: trunk, stable)
Changes

Modified src/include/lib/Garradin/Membres.php from [5ec0e09a48] to [747eeb941f].

94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
                        $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.');







|







94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
                        $data[$key] = 0;
                    }
                }
                elseif ($config->type == 'email')
                {
                    $data[$key] = strtolower($data[$key]);

                    if (trim($data[$key]) !== '' && !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.');