Changeset 2651


Ignore:
Timestamp:
Apr 4, 2012, 1:43:39 PM (9 years ago)
Author:
goya
Message:

fix suppression index elements supprimés

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/lib/task/reindexSolrObjectTask.class.php

    r2649 r2651  
    3030        $this->index($i);
    3131    } else {
    32       $obj = Doctrine::getTable($class)->find($id);
    33       $this->index($obj);
     32      $this->index($class, $id);
    3433    }
    3534  }
    3635
    37   protected static function index($obj) {
     36  protected static function index($class, $id) {
     37    $obj = Doctrine::getTable($class)->find($id);
    3838    if (!$obj) {
    3939      $json = new stdClass();
Note: See TracChangeset for help on using the changeset viewer.