Changeset 2481


Ignore:
Timestamp:
Nov 12, 2011, 12:44:30 AM (9 years ago)
Author:
komodo
Message:

dossier renvoie sur seance si une seule seance

Location:
cpc/branches/senat/project/apps/frontend/modules/section
Files:
2 edited

Legend:

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

    r2300 r2481  
    5050    $this->section = Doctrine::getTable('Section')->find($secid);
    5151    $this->forward404Unless($this->section);
     52    $this->seances = $this->section->getSeances();
     53    if (count($this->seances) == 1)
     54      $this->redirect('@interventions_seance?seance='.$this->seances[0]->id.'#table_'.$this->section->id);
    5255
    5356    $lois = $this->section->getTags(array('is_triple' => true,
  • cpc/branches/senat/project/apps/frontend/modules/section/templates/showSuccess.php

    r2335 r2481  
    9696<h2>Toutes les séances consacrées à ce dossier</h2>
    9797<ul>
    98 <?php foreach($section->getSeances() as $seance) : ?>
     98<?php foreach($seances as $seance) : ?>
    9999<li><?php $subtitre = preg_replace('/([\' ])(lois|sociales|étrangères|finances|économie|culture|européennes).*$/', '\1\2', $seance->getTypeOrga())."&nbsp;: ".myTools::displayShortDate($seance->date);
    100100  if ($seance->getMoment()) $subtitre .= '&nbsp;&mdash; '.preg_replace('/séance/i', 'réunion', $seance->getMoment());
Note: See TracChangeset for help on using the changeset viewer.