From a8c5b283e04c257196148becc83a9c613e999801 Mon Sep 17 00:00:00 2001
From: Chesley Adler <chesley@chesleyadler.com>
Date: Fri, 3 Feb 2012 23:14:35 -0600
Subject: [PATCH] issue 1302344 fixed default selector in hs_taxonomy.module

---
 modules/hs_taxonomy.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/hs_taxonomy.module b/modules/hs_taxonomy.module
index 8a591fc..7ebcbfd 100644
--- a/modules/hs_taxonomy.module
+++ b/modules/hs_taxonomy.module
@@ -180,7 +180,7 @@ function hs_taxonomy_form_taxonomy_form_term_alter(&$form, &$form_state) {
   );
 
   // Use Hierarchical Select for selecting the parent term(s).
-  $parent = isset($form['#term']['tid']) ? array_keys(taxonomy_get_parents($form['#term']['tid'])) : array(0);
+  $parent = isset($form['#term']['tid']) ? drupal_map_assoc(array_keys(taxonomy_get_parents($form['#term']['tid']))) : array(0);;
   $form['relations']['parent'] = array(
     '#type'          => 'hierarchical_select',
     '#title'         => t('Parents'),
-- 
1.7.6

