title: Weird CakePHP (1.3) Pagination component behaviour
body: <p><br />
  I have a users list page where the result can be modified by using gender, city and country selects (dropdowns), and it's working perfectly fine. As we have a lot of users I need to put a pagination as well, and here comes the <em>"weird"</em> part (I am sure it's not weird but I just cannot figure out where the problem comes from): when I select a gender, the pagination works great and I can navigate between all of the pages, but if I select a city for instance (in addition or not of the gender), the pagination numbers are right but I lost the city restriction when I move to another page.</p>
  
  <p><br />
  So I tried to understand what happens to my filters by displaying the <code>$this-&gt;data</code>. And it says exactly the same as before: working perfectly fine with the gender (<code>$this-&gt;data['users']['gender']</code> go through all the pagination pages), but the other parameters just got lost once I try to navigate away. <br />
  The thing is that there isn't any difference between the filter <code>gender</code> and the other ones, either on the controller side or in the view (both are select inputs).</p>
  
  <p>On a more technical side, here's a bit of my code:</p>
  
  <pre><code>    //In the controller function
      if (!empty($this-&gt;data['users']['gender'])) {
          $conditions['gender'] = $this-&gt;data['users']['gender'];
      }
      if (!empty($this-&gt;data['users']['country_id'])) {
          $conditions['city_id'] = 
              $this-&gt;User-&gt;City-&gt;find(
                  'list', 
                  array(
                      'conditions' =&gt; array(
                          'country_id' =&gt; $this-&gt;data['users']['country_id']), 
                      'fields' =&gt; 'City.id'));
      }
      if (!empty($this-&gt;data['users']['city_id'])) {
          if($this-&gt;data['users']['city_id'] == 'NULL') {
              $conditions['city_id IS ?'] = NULL;
          } else {
              $conditions['city_id'] = $this-&gt;data['users']['city_id'];
          }
      }
      //debug($this-&gt;data);
  
      $options = array(
          'limit' =&gt; 20,
          'order' =&gt; 'User.lastname ASC',
          'conditions' =&gt; $conditions);
      $this-&gt;paginate = $options;
      $users = $this-&gt;paginate('User');
  </code></pre>
  
  <p><br />
  As you can see, I use the <code>paginate()</code> function within the controller. I still don't understand why it's working for the gender filter and not the rest</p>
  
  <p><br />
  Cheers,<br />
  Nicolas.</p>