Changeset 2436


Ignore:
Timestamp:
Oct 31, 2011, 3:31:02 AM (9 years ago)
Author:
komodo
Message:

corection numéros lois sans le - entre les 2 années

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/branches/senat/project/lib/model/doctrine/Intervention.class.php

    r2430 r2436  
    323323                        if (preg_match('/annexe/', $matches[1][$i]) && $i)
    324324                             $loie[$y] = $oldloi."-".preg_replace('/^\D*(\d+)\D*$/', '\\1', $matche[$y]);
    325                         else $loie[$y] = preg_replace('/\s*(\d+)\D+(\d+)\-(\d+)\D*/', '\\2\\3-\\1', $matche[$y]);
     325                        else $loie[$y] = preg_replace('/\s*(\d+)\D+(\d+)[\s\-]+(\d+)\D*/', '\\2\\3-\\1', $matche[$y]);
    326326                        if (!preg_match('/\-/', $loie[$y])) {
    327327                                $loie[$y] = $this->getSeance()->getSession().'-'.preg_replace('/\D/', '', $loie[$y]);
Note: See TracChangeset for help on using the changeset viewer.