Overview
Comment:Correction recherche sur champs personnalisés
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: b764e7a6dbfeb7e92b50a6789d798d48c10ca605
User & Date: bohwaz on 2017-10-04 22:54:51
Other Links: branch diff | manifest | tags
Context
2017-10-09
22:54
Correction formulaire de login sur mobile non cliquable check-in: 7dd0a2f61e user: bohwaz tags: dev
2017-10-04
22:54
Correction recherche sur champs personnalisés check-in: b764e7a6db user: bohwaz tags: dev
2017-10-03
22:44
Dossiers nécessaires check-in: c41b7b9b10 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);