Overview
Comment:Supprimer la possibilité de lister le champ ID
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: 434b1f0bb4829513ff686698f990386a2d2069f2
User & Date: bohwaz on 2017-10-25 04:55:53
Other Links: manifest | tags
References
2020-12-08
23:25 Wiki page "Changelog/0.9" artifact: b9c916b4d1 user: bohwaz
Context
2017-10-26
00:34
Release 0.8.1: supprime le temps NTP sur la config, car des fois lent à répondre check-in: 9dcca4fe5f user: bohwaz tags: trunk, stable, 0.8.1
2017-10-25
04:55
Supprimer la possibilité de lister le champ ID check-in: 434b1f0bb4 user: bohwaz tags: trunk, stable
04:53
Ne pas lister "id" dans la liste des champs pour la config check-in: c4d7751464 user: bohwaz tags: trunk, stable
Changes

Modified src/include/lib/Garradin/Membres/Champs.php from [9d2926e8e4] to [60668b0d28].

175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
    }

	public function getAll()
	{
		return $this->champs;
	}

    public function getList($with_id = false)
    {
        $champs = clone $this->champs;
        unset($champs->passe);

        if ($with_id)
        {
            $champs->id = $this->get('id');
        }

        return $champs;
    }

    public function getListedFields()
    {
        $champs = (array) $this->champs;








|




<
<
<
<
<







175
176
177
178
179
180
181
182
183
184
185
186





187
188
189
190
191
192
193
    }

	public function getAll()
	{
		return $this->champs;
	}

    public function getList()
    {
        $champs = clone $this->champs;
        unset($champs->passe);






        return $champs;
    }

    public function getListedFields()
    {
        $champs = (array) $this->champs;

Modified src/www/admin/config/index.php from [2b0a124789] to [7c3f84bfe4].

68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
$tpl->assign('sqlite_version', $v['versionString']);

$tpl->assign('pays', Utils::getCountryList());

$cats = new Membres\Categories;
$tpl->assign('membres_cats', $cats->listSimple());

$tpl->assign('champs', $config->get('champs_membres')->getList(false));

$tpl->assign('couleur1', $config->get('couleur1') ?: $couleur1);
$tpl->assign('couleur2', $config->get('couleur2') ?: $couleur2);
$tpl->assign('couleurs_defaut', [$couleur1, $couleur2]);

$tpl->assign('custom_js', ['color_helper.js']);
$tpl->display('admin/config/index.tpl');







|







68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
$tpl->assign('sqlite_version', $v['versionString']);

$tpl->assign('pays', Utils::getCountryList());

$cats = new Membres\Categories;
$tpl->assign('membres_cats', $cats->listSimple());

$tpl->assign('champs', $config->get('champs_membres')->getList());

$tpl->assign('couleur1', $config->get('couleur1') ?: $couleur1);
$tpl->assign('couleur2', $config->get('couleur2') ?: $couleur2);
$tpl->assign('couleurs_defaut', [$couleur1, $couleur2]);

$tpl->assign('custom_js', ['color_helper.js']);
$tpl->display('admin/config/index.tpl');