Ignore:
Timestamp:
Sep 12, 2010, 12:52:00 AM (11 years ago)
Author:
roux
Message:

ajouts fonctios sur documents + correction parsing id documents

File:
1 edited

Legend:

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

    r1355 r1361  
    148148        $section2 = Doctrine::getTable('Section')->findOneByUrlAn($urls[0]['distinct']);
    149149        if ($section2) {
    150           if (!$section1)
    151             $this->setSection(Doctrine::getTable('Section')->findOneByContexteOrCreateIt(str_replace(trim(preg_replace('/^([^>])(>.*)?$/', '\\1', $contexte)), $section2->titre, $contexte), $date, $timestamp));
     150          if (!$section1) 
     151            $this->setSection(Doctrine::getTable('Section')->findOneByContexteOrCreateIt(str_replace(trim(preg_replace('/^([^>]+)(>.*)?$/', '\\1', $contexte)), $section2->titre, $contexte), $date, $timestamp));
    152152          else if ($section1->section_id == $section2->id)
    153153            $this->setSection(Doctrine::getTable('Section')->findOneByContexteOrCreateIt($section1->titre_complet, $date, $timestamp));
     
    156156            if ($debug) {
    157157              print "WARNING : Intervention $this->id has tags lois corresponding to another section $section2->id";
    158               print " => Saving to section $this->Section->id\n";
     158              print " => Saving to section ".$this->Section->id."\n";
    159159              $debug = 0;
    160160            }
Note: See TracChangeset for help on using the changeset viewer.