Ignore:
Timestamp:
Sep 25, 2010, 9:55:49 PM (11 years ago)
Author:
teymour
Message:

Bug du index_if

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/lib/model/solr/SolrListener.php

    r1405 r1414  
    7272
    7373    $t = null;
    74     if (isset( $this->_options['index_if']) && $t = $this->_options['index_if'] && $t && !$obj->get($t))
    75       return ;
     74    if (isset( $this->_options['index_if']) && $t = $this->_options['index_if']) {
     75      if (!($obj->get($t))) {
     76        return $this->postDelete($event);
     77      }
     78    }
    7679   
    7780    $json = array();
     
    7982    $json['object_id'] =  $obj->getId();
    8083    $json['object_name'] = get_class($obj);
    81    
    8284    if (isset($this->_options['description']) && $t = $this->_options['description']) {
    8385      $content = $this->getObjFieldsValue($obj, $t);
Note: See TracChangeset for help on using the changeset viewer.