Parcourir la source

[up] views 7.x-3.22

opi il y a 6 ans
Parent
commit
510246a49d

+ 4 - 4
sites/all/modules/views/includes/handlers.inc

@@ -1000,20 +1000,20 @@ class views_many_to_one_helper {
       // We do one join per selected value.
 
       // Clone the join for each table:
-      $this->handler->table_aliases = [];
+      $this->handler->table_aliases = array();
       foreach ($this->handler->value as $value) {
         $join = $this->get_join();
         if ($this->handler->operator == 'and') {
           $join->type = 'INNER';
         }
         if (empty($join->extra)) {
-          $join->extra = [];
+          $join->extra = array();
         }
-        $join->extra[] = [
+        $join->extra[] = array(
           'field' => $this->handler->real_field,
           'value' => $value,
           'numeric' => !empty($this->handler->definition['numeric']),
-        ];
+        );
         // The table alias needs to be unique to this value across the
         // multiple times the filter or argument is called by the view.
         if (!isset($this->handler->view->many_to_one_aliases[$field][$value])) {

+ 2 - 2
sites/all/modules/views/tests/views_handler_filter.test

@@ -60,8 +60,8 @@ class ViewsHandlerFilterTest extends ViewsSqlTest {
     $node1 = $this->drupalCreateNode(array('type' => 'article','field_tags_tid' => $term->tid, 'created' => REQUEST_TIME));
     $node2 = $this->drupalCreateNode(array('type' => 'article', 'created' => REQUEST_TIME + 1));
     $user2 = $this->drupalCreateUser(array('access content'));
-    // $this->drupalLogin($this->drupalCreateUser(['administer users']);
-    $this->drupalLogin($this->drupalCreateUser(['administer users', 'access administration pages', 'administer site configuration', 'administer nodes', 'bypass node access']));
+    // $this->drupalLogin($this->drupalCreateUser(array('administer users'));
+    $this->drupalLogin($this->drupalCreateUser(array('administer users', 'access administration pages', 'administer site configuration', 'administer nodes', 'bypass node access')));
 
     $this->drupalGet('node/1/edit');
     $edit['field_tags' . '[' . LANGUAGE_NONE . ']'] = $term->name;

+ 3 - 3
sites/all/modules/views/tests/views_test.info

@@ -5,8 +5,8 @@ core = 7.x
 dependencies[] = views
 hidden = TRUE
 
-; Information added by Drupal.org packaging script on 2019-03-13
-version = "7.x-3.21"
+; Information added by Drupal.org packaging script on 2019-04-03
+version = "7.x-3.22"
 core = "7.x"
 project = "views"
-datestamp = "1552486703"
+datestamp = "1554307093"

+ 3 - 3
sites/all/modules/views/views.info

@@ -329,8 +329,8 @@ files[] = tests/views_cache.test
 files[] = tests/views_view.test
 files[] = tests/views_ui.test
 
-; Information added by Drupal.org packaging script on 2019-03-13
-version = "7.x-3.21"
+; Information added by Drupal.org packaging script on 2019-04-03
+version = "7.x-3.22"
 core = "7.x"
 project = "views"
-datestamp = "1552486703"
+datestamp = "1554307093"

+ 3 - 3
sites/all/modules/views/views_ui.info

@@ -8,8 +8,8 @@ dependencies[] = views
 files[] = views_ui.module
 files[] = plugins/views_wizard/views_ui_base_views_wizard.class.php
 
-; Information added by Drupal.org packaging script on 2019-03-13
-version = "7.x-3.21"
+; Information added by Drupal.org packaging script on 2019-04-03
+version = "7.x-3.22"
 core = "7.x"
 project = "views"
-datestamp = "1552486703"
+datestamp = "1554307093"