Changeset 3077


Ignore:
Timestamp:
Jan 27, 2013, 11:10:35 PM (8 years ago)
Author:
komodo
Message:

fix sections sans amendemnts qui affichent tous les amendements du sénateur au lieu d'aucun

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/branches/senat/project/apps/frontend/modules/amendement/actions/actions.class.php

    r2212 r3077  
    8383      ->where('pa.parlementaire_id = ?', $this->parlementaire->id)
    8484      ->andWhere('a.sort <> ?', 'Rectifié')
    85       ->andWhereIn('a.texteloi_id', $lois)
    8685      ->orderBy('a.texteloi_id DESC, a.date DESC, '.self::$order.' DESC');
     86    if (count($lois))
     87      $this->qamendements->andWhereIn('a.texteloi_id', $lois);
     88    else $this->qamendements->andWhere('a.sort = "FALSE"');
    8789  }
    8890
Note: See TracChangeset for help on using the changeset viewer.