Project

General

Profile

Revision 6de61b86

Added by Assos Assos over 5 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/views/includes/handlers.inc
1000 1000
      // We do one join per selected value.
1001 1001

  
1002 1002
      // Clone the join for each table:
1003
      $this->handler->table_aliases = [];
1003
      $this->handler->table_aliases = array();
1004 1004
      foreach ($this->handler->value as $value) {
1005 1005
        $join = $this->get_join();
1006 1006
        if ($this->handler->operator == 'and') {
1007 1007
          $join->type = 'INNER';
1008 1008
        }
1009 1009
        if (empty($join->extra)) {
1010
          $join->extra = [];
1010
          $join->extra = array();
1011 1011
        }
1012
        $join->extra[] = [
1012
        $join->extra[] = array(
1013 1013
          'field' => $this->handler->real_field,
1014 1014
          'value' => $value,
1015 1015
          'numeric' => !empty($this->handler->definition['numeric']),
1016
        ];
1016
        );
1017 1017
        // The table alias needs to be unique to this value across the
1018 1018
        // multiple times the filter or argument is called by the view.
1019 1019
        if (!isset($this->handler->view->many_to_one_aliases[$field][$value])) {

Also available in: Unified diff