Changeset 2480


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

dossier renvoie sur seance si une seule seance

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

    r2008 r2480  
    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/trunk/project/apps/frontend/modules/section/templates/showSuccess.php

    r1496 r2480  
    9898<h2>Toutes les séances consacrées à ce dossier</h2>
    9999<ul>
    100 <?php foreach($section->getSeances() as $seance) : ?>
     100<?php foreach($seances as $seance) : ?>
    101101<li><?php $subtitre = $seance->getTitre();
    102102  if ($seance->nb_commentaires > 0) {
Note: See TracChangeset for help on using the changeset viewer.