Index: uc_discounts/uc_discounts.admin.inc
===================================================================
--- uc_discounts/uc_discounts.admin.inc	(revision 3665)
+++ uc_discounts/uc_discounts.admin.inc	(working copy)
@@ -370,14 +370,12 @@
 
   //Create terms form element
   $options            = array();
-  $result             = db_query("SELECT tid, name FROM {term_data} ORDER BY weight");
   $options[ALL_TERMS] = t("<All Terms>");
-  while ($row = db_fetch_object($result)) $options[$row->tid] = $row->name;
   $form["discount_set"]["term_ids"] = array(
     "#type" => "select",
     "#title" => t("Terms") . sprintf("<span title='". t("This field is required.") ."' class='form-required'>*</span>"),
     "#description" => t("Select all terms this discount applies to or &lt;All Terms&gt; to apply to all terms.  Selections are <b>not</b> recursive."),
-    "#options" => $options,
+    "#options" => taxonomy_form_all(),
     "#default_value" => $term_ids,
     "#multiple" => TRUE,
     "#prefix" => sprintf("<div class='terms-container'%s>", $terms_display_string),

