Merge branch 'platal-1.0.0'
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 17 Sep 2010 12:36:31 +0000 (14:36 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 17 Sep 2010 12:36:31 +0000 (14:36 +0200)
Conflicts:
core

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
1  2 
core
include/ufbuilder.inc.php
modules/axletter/axletter.inc.php

diff --cc core
--- 1/core
--- 2/core
+++ b/core
@@@ -1,1 -1,1 +1,1 @@@
- Subproject commit adf0fa2119688cf61ca23b7bc23b0730af702c6d
 -Subproject commit 1b54ef260c1db3f94830fb6f9b1b13aeb9fcdb78
++Subproject commit 3c7bc7a377e3d5422f61b92ddf69c4a953ad3d15
Simple merge
@@@ -175,13 -175,12 +175,13 @@@ class AXLetter extends MassMaile
          if (!$this->_promo_min && !$this->_promo_max && !$this->_subset) {
              return '1';
          }
 +        /* TODO: refines this filter on promotions by using userfilter. */
          $where = array();
          if ($this->_promo_min) {
-             $where[] = "((ni.uid = 0 AND ni.promo >= {$this->_promo_min}) OR (ni.uid != 0 AND u.promo >= {$this->_promo_min}))";
+             $where[] = "((ni.uid = 0 AND ni.promo >= {$this->_promo_min}) OR (ni.uid != 0 AND pd.promo >= 'X{$this->_promo_min}'))";
          }
          if ($this->_promo_max) {
-             $where[] = "((ni.uid = 0 AND ni.promo <= {$this->_promo_max}) OR (ni.uid != 0 AND u.promo <= {$this->_promo_max}))";
+             $where[] = "((ni.uid = 0 AND ni.promo <= {$this->_promo_max}) OR (ni.uid != 0 AND pd.promo <= 'X{$this->_promo_max}'))";
          }
          if ($this->_subset) {
              require_once("emails.inc.php");