Index: uc_attribute/uc_attribute.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ubercart/uc_attribute/uc_attribute.module,v
retrieving revision 1.12.2.38
diff -u -p -r1.12.2.38 uc_attribute.module
--- uc_attribute/uc_attribute.module	27 Jan 2010 22:23:31 -0000	1.12.2.38
+++ uc_attribute/uc_attribute.module	10 Aug 2010 18:01:06 -0000
@@ -759,7 +759,6 @@ function _uc_attribute_alter_form($produ
         if ($attribute->display == 1) {
           $options = array('' => t('Please select')) + $options;
         }
-        unset($attribute->default_option);
       }
       switch ($attribute->display) {
         case 1:
@@ -775,7 +774,7 @@ function _uc_attribute_alter_form($produ
       $form_attributes[$attribute->aid] = array(
         '#type' => $attr_type,
         '#description' => check_markup($attribute->description),
-        '#default_value' => ($attr_type == "checkboxes" ? array() : $attribute->default_option),
+        '#default_value' => ($attr_type == "checkboxes" ? array($attribute->default_option) : $attribute->default_option),
         '#options' => $options,
         '#required' => $attribute->required,
       );
