Changeset 2676


Ignore:
Timestamp:
May 12, 2012, 8:49:01 PM (8 years ago)
Author:
teymour
Message:

Gestion des listes continues d'amendements identiques déposés de manière multiples (de XX à YY)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/lib/model/doctrine/Amendement.class.php

    r2674 r2676  
    133133      sort($ident);
    134134      foreach ($ident as $iden) if (preg_match('/'.$lettre.'/', $iden)) $iden.= $lettre;
    135       $numeros = implode(', ', $ident);
     135      if (count($ident) ==  $this->nb_multiples) {
     136        $numeros = $ident[0].' à '.$ident[$this->nb_multiples -1];
     137      }else{
     138        $numeros = implode(', ', $ident);
     139      }
    136140      $pluriel = "s";
    137141    }
Note: See TracChangeset for help on using the changeset viewer.