Changeset 1353


Ignore:
Timestamp:
Sep 11, 2010, 6:28:06 PM (10 years ago)
Author:
goya
Message:

oups oublié les amdtms

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  
    8484          $this->docs["$loi"] = null;
    8585      }
    86     }
    8786   
    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
    9494    $inters = Doctrine_Query::create()
    9595      ->select('i.id')
  • cpc/trunk/project/apps/frontend/modules/section/templates/showSuccess.php

    r1333 r1353  
    3131    }
    3232  }
    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>";
    3434?>
    3535</div>
Note: See TracChangeset for help on using the changeset viewer.