Changeset 1353
- Timestamp:
- Sep 11, 2010, 6:28:06 PM (10 years ago)
- Location:
- cpc/trunk/project/apps/frontend/modules/section
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/modules/section/actions/actions.class.php
r1352 r1353 84 84 $this->docs["$loi"] = null; 85 85 } 86 }87 86 88 $amdmts_lois = Doctrine_Query::create()->select('distinct(a.texteloi_id)')->from('Amendement a')->whereIn('a.texteloi_id', $lois)->fetchArray(); 89 $this->lois_amendees = array(); 90 foreach($amdmts_lois as $loi) 91 array_push($this->lois_amendees, $loi['distinct']); 92 sort($this->lois_amendees); 93 87 $amdmts_lois = Doctrine_Query::create()->select('distinct(a.texteloi_id)')->from('Amendement a')->whereIn('a.texteloi_id', $lois)->fetchArray(); 88 $this->lois_amendees = array(); 89 foreach($amdmts_lois as $loi) 90 array_push($this->lois_amendees, $loi['distinct']); 91 sort($this->lois_amendees); 92 } 93 94 94 $inters = Doctrine_Query::create() 95 95 ->select('i.id') -
cpc/trunk/project/apps/frontend/modules/section/templates/showSuccess.php
r1333 r1353 31 31 } 32 32 } 33 echo link_to('Tous les amendements à ce dossier', '@find_amendements_by_loi_and_numero?loi='.urlencode(implode(',',$lois_amendees)).'&numero=all')."</p>";33 if (isset($lois_amendees)) echo link_to('Tous les amendements à ce dossier', '@find_amendements_by_loi_and_numero?loi='.urlencode(implode(',',$lois_amendees)).'&numero=all')."</p>"; 34 34 ?> 35 35 </div>
Note: See TracChangeset
for help on using the changeset viewer.