Permalink
Browse files

Taxonomy choice method fixed.

  • Loading branch information...
1 parent 135ff4b commit e8c68f2760c4faede5a6033d572e41600cd5c5b8 @thedotwriter committed Apr 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tagging_ajax_suggest_d6.class.inc
@@ -35,7 +35,7 @@ class tagging_ajax_suggest_d6 extends tagging_ajax_suggest_base
// TODO: Add support for multiple tagging field on one node. At this point, the module just
// pick data from the first one. To change that, it will be needed to know wich "Suggest tag"
// button has been clicked.
- $element = $form['taxonomy']['tags'][1];
+ $element = current($form['taxonomy']['tags']);
// Load suggestions
$suggestions = _tagging_get_suggestions($element['#vid'], (object) $node);

0 comments on commit e8c68f2

Please sign in to comment.