Index: migrate/hosting_migrate.module =================================================================== RCS file: /cvs/drupal/contributions/modules/hosting/migrate/hosting_migrate.module,v retrieving revision 1.17 diff -u -p -r1.17 hosting_migrate.module --- migrate/hosting_migrate.module 26 Jun 2009 12:55:11 -0000 1.17 +++ migrate/hosting_migrate.module 25 Aug 2009 10:24:48 -0000 @@ -27,7 +27,7 @@ function hosting_task_migrate_form_valid if (!$form_state['values']['parameters']['target_platform']) { form_set_error('parameters][target_platform', t('You need to select a valid platform to migrate your site to.')); } - if ($form_state['values']['parameters']['target_platform'] == $site->platform) { + if ($form_state['values']['parameters']['hidden']) { form_set_error('parameters][target_platform', t('You may not select your current platform to migrate your site to.')); } } @@ -62,8 +62,10 @@ function hosting_task_migrate_form($node array('r.type' => 'platform', 'n.nid' => $node->profile)); if (sizeof($profile_platform_instances) <= 1) { $form['no_targets'] = array( - '#value' => t('
There are no platforms that can meet the depdendencies for this site')); - return $form; + '#value' => t('
There are no platforms that can meet the dependencies for this site
')); + $form['hidden'] = array( + '#type' => 'hidden', + '#value' => t('no_targets')); } foreach ($profile_platform_instances as $profile_instance) {