Revision 6de61b86
Added by Assos Assos over 5 years ago
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])) { |
drupal7/sites/all/modules/views/tests/views_handler_filter.test | ||
---|---|---|
60 | 60 |
$node1 = $this->drupalCreateNode(array('type' => 'article','field_tags_tid' => $term->tid, 'created' => REQUEST_TIME)); |
61 | 61 |
$node2 = $this->drupalCreateNode(array('type' => 'article', 'created' => REQUEST_TIME + 1)); |
62 | 62 |
$user2 = $this->drupalCreateUser(array('access content')); |
63 |
// $this->drupalLogin($this->drupalCreateUser(['administer users']);
|
|
64 |
$this->drupalLogin($this->drupalCreateUser(['administer users', 'access administration pages', 'administer site configuration', 'administer nodes', 'bypass node access']));
|
|
63 |
// $this->drupalLogin($this->drupalCreateUser(array('administer users'));
|
|
64 |
$this->drupalLogin($this->drupalCreateUser(array('administer users', 'access administration pages', 'administer site configuration', 'administer nodes', 'bypass node access')));
|
|
65 | 65 |
|
66 | 66 |
$this->drupalGet('node/1/edit'); |
67 | 67 |
$edit['field_tags' . '[' . LANGUAGE_NONE . ']'] = $term->name; |
drupal7/sites/all/modules/views/tests/views_test.info | ||
---|---|---|
5 | 5 |
dependencies[] = views |
6 | 6 |
hidden = TRUE |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2019-03-13
|
|
9 |
version = "7.x-3.21"
|
|
8 |
; Information added by Drupal.org packaging script on 2019-04-03
|
|
9 |
version = "7.x-3.22"
|
|
10 | 10 |
core = "7.x" |
11 | 11 |
project = "views" |
12 |
datestamp = "1552486703" |
|
12 |
datestamp = "1554307093" |
drupal7/sites/all/modules/views/views.info | ||
---|---|---|
329 | 329 |
files[] = tests/views_view.test |
330 | 330 |
files[] = tests/views_ui.test |
331 | 331 |
|
332 |
; Information added by Drupal.org packaging script on 2019-03-13
|
|
333 |
version = "7.x-3.21"
|
|
332 |
; Information added by Drupal.org packaging script on 2019-04-03
|
|
333 |
version = "7.x-3.22"
|
|
334 | 334 |
core = "7.x" |
335 | 335 |
project = "views" |
336 |
datestamp = "1552486703" |
|
336 |
datestamp = "1554307093" |
drupal7/sites/all/modules/views/views_ui.info | ||
---|---|---|
8 | 8 |
files[] = views_ui.module |
9 | 9 |
files[] = plugins/views_wizard/views_ui_base_views_wizard.class.php |
10 | 10 |
|
11 |
; Information added by Drupal.org packaging script on 2019-03-13
|
|
12 |
version = "7.x-3.21"
|
|
11 |
; Information added by Drupal.org packaging script on 2019-04-03
|
|
12 |
version = "7.x-3.22"
|
|
13 | 13 |
core = "7.x" |
14 | 14 |
project = "views" |
15 |
datestamp = "1552486703" |
|
15 |
datestamp = "1554307093" |
Also available in: Unified diff
Weekly update of contrib modules