diff --git a/2573661-show_message_linking-8.patch b/2573661-show_message_linking-11.patch index 4e47a9f..b6fccb9 100644 --- a/2573661-show_message_linking-8.patch +++ b/2573661-show_message_linking-11.patch @@ -1,19 +1,22 @@ diff --git a/drupalorg_project/drupalorg_project.module b/drupalorg_project/drupalorg_project.module -index 4b75825f8b68b34639e9580ae3e6803fd730f171..7046a74b3ac52060e5745ecb579de00b83a0eb22 100644 +index 4b75825f8b68b34639e9580ae3e6803fd730f171..ad956283bc5c32d1182d394b335d478ee1b37c3d 100644 --- a/drupalorg_project/drupalorg_project.module +++ b/drupalorg_project/drupalorg_project.module -@@ -1528,6 +1528,10 @@ function drupalorg_project_ctools_plugin_api($module, $api) { - } +@@ -1529,6 +1529,13 @@ function drupalorg_project_ctools_plugin_api($module, $api) { } + /** ++ * Implements hook_views_api(). ++ */ +function drupalorg_project_views_api() { + return array("version" => 3.0); +} + - /** ++/** * Implements hook_views_pre_render(). * -@@ -1619,6 +1623,109 @@ function drupalorg_project_form_views_exposed_form_alter(&$form, &$form_state) { + * Sets the breadcrumb up for project navigation for the change records views. +@@ -1619,6 +1626,108 @@ function drupalorg_project_form_views_exposed_form_alter(&$form, &$form_state) { } /** @@ -40,7 +43,7 @@ index 4b75825f8b68b34639e9580ae3e6803fd730f171..7046a74b3ac52060e5745ecb579de00b + $releases = project_release_query_releases($node->nid, array(103, 87)); + $versions = array(); + // TODO: Remove the hardcodedness of this code. -+ // Look through all releases to see if there is a 6.x, 7.x, or 8.x release ++ // Look through all releases to see if there is a 6.x or 7.x release. + foreach ($releases as $tid => $release) { + $core = explode('-', $release->field_release_version[$release->language][0]['value']); + $core = array_shift($core); @@ -50,11 +53,10 @@ index 4b75825f8b68b34639e9580ae3e6803fd730f171..7046a74b3ac52060e5745ecb579de00b + if (array_key_exists('6.x', $versions) || array_key_exists('7.x', $versions)) { + // Check to see the status of the 8.x release from contrib_tracker. + $query = new EntityFieldQuery(); -+ $query -+ ->entityCondition('entity_type', 'node') ++ $query->entityCondition('entity_type', 'node') + ->entityCondition('bundle', 'project_issue') -+ ->propertyCondition('title', $node->field_project_machine_name[$node->language][0]['value'], 'CONTAINS') -+ ->fieldCondition('field_project', 'target_id', 2509763, '=') ++ ->propertyCondition('title', '[' . $node->field_project_machine_name[$node->language][0]['value']. ']', 'STARTS_WITH') ++ ->fieldCondition('field_project', 'target_id', 2573607, '=') + ->range(0, 1); + + $entities = $query->execute(); @@ -123,7 +125,7 @@ index 4b75825f8b68b34639e9580ae3e6803fd730f171..7046a74b3ac52060e5745ecb579de00b * Implementation of hook_form_FORM_ID_alter(). */ function drupalorg_project_form_project_issue_issue_cockpit_searchbox_alter(&$form) { -@@ -1822,3 +1929,4 @@ function drupalorg_project_codereview_access($node) { +@@ -1822,3 +1931,4 @@ function drupalorg_project_codereview_access($node) { } return FALSE; }