Closed (duplicate)
Project:
Content Taxonomy
Version:
6.x-1.0-rc2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Dec 2009 at 19:58 UTC
Updated:
27 Mar 2010 at 19:19 UTC
I wanted to use the "active tags"-module. But the use of Content Taxonomy breaks it since the function "content_taxonomy_form_alter" resets the form.
In active_tags_popular.module (current build) the form-alter-function is checked for "$form['taxonomy']['tags']". It exists at this point and a function is added "#after_build".
I can be solved by adding the simple fix to content-taxonomy (The "tag"-attribute has to be copied):
if ($empty_fieldset) {
$old_taxonomy = $form['taxonomy'];
// creating an empty taxonomy array is causing errors on preview in the taxonomy module
// so we create an empty value field as placeholder, which is going to prevent the errors
$form['taxonomy'] = array('#tree' => TRUE);
$form['taxonomy']['key'] = array('#type' => 'value', '#value' => '');
if(array_key_exists('tags', $old_taxonomy)) {
$form['taxonomy']['tags'] = $old_taxonomy['tags'];
}
}
Comments
Comment #1
xjmI believe this is a duplicate of #560722: Active Tags Popular support.