Inheritance value from the exposed filter
Try replacing

function customSearch_views_pre_view(&amp;$view) {  
  if ($view-&gt;name == 'search') {        
    $filters = $view-&gt;display_handler-&gt;get_option('filters');   
    $filters['field_price2_value']['value']['min'] = $view-&gt;exposed_input['field_price1_value']['min'];
    $filters['field_price2_value']['value']['max'] = $view-&gt;exposed_input['field_price1_value']['max'];
    $view-&gt;display_handler-&gt;override_option('filters', $filters);
  }
}


with 

function customSearch_views_pre_execute(&amp;$view) {  
  if ($view-&gt;name == 'search') {        
    $filters = $view-&gt;display_handler-&gt;get_option('filters');   
    $filters['field_price2_value']['value']['min'] = $view-&gt;exposed_input['field_price1_value']['min'];
    $filters['field_price2_value']['value']['max'] = $view-&gt;exposed_input['field_price1_value']['max'];
    $view-&gt;display_handler-&gt;override_option('filters', $filters);
  }
}


And then clear your cache.