Browse Source

WARNING don't now where i am here :/

Bachir Soussi Chiadmi 9 years ago
parent
commit
1be1c89407

+ 0 - 0
LICENSE.txt


+ 0 - 0
images/README.txt


+ 0 - 0
images/bullet_move.png


+ 0 - 0
images/dotted_corner.png


+ 0 - 0
images/dotted_line.png


+ 0 - 0
term_reference_tree-missing-vocabulary-machine-name.patch.txt


+ 0 - 0
term_reference_tree.css


+ 0 - 0
term_reference_tree.field.inc


+ 0 - 0
term_reference_tree.info


+ 0 - 0
term_reference_tree.js


+ 0 - 0
term_reference_tree.module


+ 0 - 0
term_reference_tree.module.orig


+ 4 - 4
term_reference_tree.widget.inc

@@ -765,15 +765,15 @@ function _term_reference_tree_build_item(&$element, &$term, &$form_state, &$valu
   }
 
   $t = null;
-  if(module_exists('locale')) {
+  // if(module_exists('locale')) {
     // $t = taxonomy_term_load($term->tid);
     // taxonomy_term_load return term without name, because of module title
-    $term_name = entity_label('taxonomy_term', $term);
+    // $term_name = entity_label('taxonomy_term', $term);
     // there is a problem here with title module, title_entity_label() return empty label
     // see http://drupal.org/node/1764354
-  } else {
+  // } else {
     $term_name = $term->name;
-  }
+  // }
   $container = array(
     '#type' => 'checkbox_tree_item',
     '#max_choices' => $max_choices,