Index: cvs_deploy.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/cvs_deploy/cvs_deploy.module,v retrieving revision 1.29 diff -u -p -r1.29 cvs_deploy.module --- cvs_deploy.module 2 Oct 2010 23:52:23 -0000 1.29 +++ cvs_deploy.module 3 Oct 2010 01:25:18 -0000 @@ -189,7 +189,8 @@ function _cvs_deploy_find_latest_update( /** * Implements hook_update_status_alter(). * - * If we're viewing the available updates report, and any of the projects on + * If we're viewing the available updates report or any of the Update manager + * pages that let you install missing updates, and any of the projects on * the page still think their version is just 'HEAD', but the project has * release data for a release node using 'HEAD' as the tag, we're in the edge * case of viewing the report when there was initially no available update @@ -202,15 +203,21 @@ function _cvs_deploy_find_latest_update( * updates report so that there are no bogus results displayed. */ function cvs_deploy_update_status_alter($projects) { - if ($_GET['q'] == 'admin/reports/updates') { - foreach ($projects as $key => $project) { - if (isset($project['existing_version']) && $project['existing_version'] == 'HEAD' && !empty($project['releases'])) { - foreach ($project['releases'] as $version => $release) { - if ($release['tag'] == 'HEAD') { - return drupal_goto('admin/reports/updates'); + switch ($_GET['q']) { + case 'admin/reports/updates': + case 'admin/reports/updates/update': + case 'admin/modules/update': + case 'admin/appearance/update': + foreach ($projects as $key => $project) { + if (isset($project['existing_version']) && $project['existing_version'] == 'HEAD' && !empty($project['releases'])) { + foreach ($project['releases'] as $version => $release) { + if ($release['tag'] == 'HEAD') { + return drupal_goto($_GET['q']); + } } } } - } + break; + } }