Overview
Comment:Fix bug nom de champ ambigu
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: 366ec1d95de84ebb8ee1dc593737e09f5721ffd8
User & Date: bohwaz on 2018-10-19 23:13:06
Other Links: branch diff | manifest | tags
Context
2018-10-21
19:20
Correction typo nom variable envoi de mail check-in: 536d23e2c9 user: bohwaz tags: dev
2018-10-19
23:13
Fix bug nom de champ ambigu check-in: 366ec1d95d user: bohwaz tags: dev
19:33
Intercepter les recherches où rien n'a été sélectionné check-in: 9c5436a829 user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Membres/Cotisations.php from [05dee5b004] to [a0fca4e3fd].

259
260
261
262
263
264
265
266
267
268



269
270
271
272
273
274
275
		$champ_id = Config::getInstance()->get('champ_identite');

		if (empty($order))
			$order = 'date';

		switch ($order)
		{
			case 'date':
			case 'a_jour':
				break;



			case 'identite':
				$order = 'transliterate_to_ascii('.$champ_id.') COLLATE NOCASE';
				break;
			default:
				$order = 'cm.id_membre';
				break;
		}







<


>
>
>







259
260
261
262
263
264
265

266
267
268
269
270
271
272
273
274
275
276
277
		$champ_id = Config::getInstance()->get('champ_identite');

		if (empty($order))
			$order = 'date';

		switch ($order)
		{

			case 'a_jour':
				break;
			case 'date':
				$order = 'cm.date';
				break;
			case 'identite':
				$order = 'transliterate_to_ascii('.$champ_id.') COLLATE NOCASE';
				break;
			default:
				$order = 'cm.id_membre';
				break;
		}