From: Raphaël Barrois Date: Tue, 22 Feb 2011 22:15:23 +0000 (+0100) Subject: Fix UFBF_SchoolId X-Git-Tag: xorg/1.1.0~1^2~4 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=91b9255bf67fa0f9d7093a9930d20a5327972270;p=platal.git Fix UFBF_SchoolId Signed-off-by: Raphaël Barrois --- diff --git a/include/ufbuilder.inc.php b/include/ufbuilder.inc.php index 0a5e2ff..f967ac1 100644 --- a/include/ufbuilder.inc.php +++ b/include/ufbuilder.inc.php @@ -794,7 +794,7 @@ class UFBF_SchoolIds extends UFB_Field } $value = $ufb->t($this->envfield); - $values = explode("\n", $value); + $values = explode("\r\n", $value); $ids = array(); foreach ($values as $val) { if (preg_match('/^[0-9A-Z]{0,8}$/', $val)) { diff --git a/templates/newsletter/edit.tpl b/templates/newsletter/edit.tpl index 4bd93c1..3009373 100644 --- a/templates/newsletter/edit.tpl +++ b/templates/newsletter/edit.tpl @@ -185,6 +185,7 @@
Entrer une liste de matricules AX (un par ligne)
+ Inverser la sélection (sélectionner dans l'intervalle de promotions, à l'exception des matricules indiqués) {/if}