From: Stéphane Jacob Date: Fri, 13 May 2011 08:21:47 +0000 (+0200) Subject: Fixes promotion selection in newsletter. X-Git-Tag: xorg/1.1.2~1^2~6 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=99f1bdfdb3dce1107bca653653e9b6fe2871b8df;p=platal.git Fixes promotion selection in newsletter. Signed-off-by: Stéphane Jacob --- diff --git a/include/ufbuilder.inc.php b/include/ufbuilder.inc.php index 8e8fea3..7b8a979 100644 --- a/include/ufbuilder.inc.php +++ b/include/ufbuilder.inc.php @@ -445,8 +445,8 @@ class UFB_NewsLetter extends UserFilterBuilder { $fields = array(); if ($flags->hasFlag(self::FIELDS_PROMO)) { - $fields[] = new UFBF_Promo('promo1', 'Promotion', 'egal1'); - $fields[] = new UFBF_Promo('promo2', 'Promotion', 'egal2'); + $fields[] = new UFBF_Promo('promo1', 'Promotion', 'egal1', 'edu_type'); + $fields[] = new UFBF_Promo('promo2', 'Promotion', 'egal2', 'edu_type'); } if ($flags->hasFlag(self::FIELDS_AXID)) { $fields[] = new UFBF_SchoolIds('axid', 'Matricule AX', UFC_SchoolId::AX); diff --git a/templates/newsletter/edit.tpl b/templates/newsletter/edit.tpl index 90ae27f..143f4cd 100644 --- a/templates/newsletter/edit.tpl +++ b/templates/newsletter/edit.tpl @@ -175,6 +175,11 @@  et  + {/if}