Révision 4003efde
Ajouté par Assos Assos il y a environ 4 ans
drupal7/sites/all/modules/views/handlers/views_handler_filter_numeric.inc | ||
---|---|---|
379 | 379 |
'value' => $value, |
380 | 380 |
); |
381 | 381 |
} |
382 |
if (!empty($this->options['expose']['use_operator']) && !empty($this->options['expose']['operator_id']) && isset($input[$this->options['expose']['operator_id']])) { |
|
383 |
if ($input[$this->options['expose']['operator_id']] === 'empty' || $input[$this->options['expose']['operator_id']] === 'not empty') { |
|
384 |
// Parent method will expect a boolean value. We don't ask for a value |
|
385 |
// so we'll force "Yes". |
|
386 |
$value['value'] = 1; |
|
387 |
} |
|
388 |
} |
|
382 | 389 |
} |
383 | 390 |
|
384 | 391 |
$rc = parent::accept_exposed_input($input); |
Formats disponibles : Unified diff
Weekly update of contrib modules