Created
October 29, 2012 01:34
-
-
Save claudinec/3970891 to your computer and use it in GitHub Desktop.
fixed http://drupal.org/files/hs-term-edit-form.patch with correct paths
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/modules/hs_taxonomy.module | |
+++ b/modules/hs_taxonomy.module | |
@@ -181,6 +181,9 @@ 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); | |
+ if (empty($parent)) { | |
+ $parent = array(0); | |
+ } | |
$form['relations']['parent'] = array( | |
'#type' => 'hierarchical_select', | |
'#title' => t('Parents'), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue on d.o: http://drupal.org/node/1566878