Overview
SHA1:b764e7a6dbfeb7e92b50a6789d798d48c10ca605
Date: 2017-10-04 22:54:51
User: bohwaz
Comment:Correction recherche sur champs personnalisés
Timelines: family | ancestors | descendants | both | dev
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2017-10-09
22:54
[7dd0a2f61e] Correction formulaire de login sur mobile non cliquable (user: bohwaz, tags: dev)
2017-10-04
22:54
[b764e7a6db] Correction recherche sur champs personnalisés (user: bohwaz, tags: dev)
2017-10-03
22:44
[c41b7b9b10] Dossiers nécessaires (user: bohwaz, tags: dev)
Changes

Modified src/www/admin/membres/recherche.php from [f10ab087dd] to [f1f8cf4472].

47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65

$champs_liste = $champs->getList();

$champs_liste->id = (object) ['title' => 'Numéro unique', 'type' => 'number'];

$champs_entete = $champs->getListedFields();

if (!array_key_exists($champ, $champs_entete))
{
    $champs_entete = array_merge(
        [$champ => $champs_liste->$champ],
        $champs_entete
    );
}

$tpl->assign('champs_entete', $champs_entete);
$tpl->assign('champs_liste', $champs_liste);
$tpl->assign('champ', $champ);








|



|







47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65

$champs_liste = $champs->getList();

$champs_liste->id = (object) ['title' => 'Numéro unique', 'type' => 'number'];

$champs_entete = $champs->getListedFields();

if (!isset($champs_entete->$champ))
{
    $champs_entete = array_merge(
        [$champ => $champs_liste->$champ],
        (array)$champs_entete
    );
}

$tpl->assign('champs_entete', $champs_entete);
$tpl->assign('champs_liste', $champs_liste);
$tpl->assign('champ', $champ);