tasks.module, lines 356-357:
356: $form['#attributes'] = array('id'=>'tasks-filter');
357: $output .= drupal_get_form('task_filter',$form);

causes the output
to have two id's assigned:

if at least they were the same! ;)
Commenting out 356 solves the problem.

tasks_advanced seems to have copy and pasted this code and has the same issue. (and thus if you have it installed as well, is where you need to commentit out as it supercedes tasks.module's functions in this case.)

CommentFileSizeAuthor
#1 tasks_doubleid.patch684 bytesmoonray

Comments

moonray’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new684 bytes

The answer is not only to remove line 411, but to change line 412 to:
$output .= drupal_get_form('tasks_filter', $form);

Fixed in tasks_advanced module.

Attached patch for tasks.module

p.s.
Drupal is a little inconsistent with its rules for css ids. The form id tends to get underscores (because php doesn't like hyphens in function names), which is not recommended in css because of some backward compatibility problems... sooooo the id for this form is then tasks_filter.

moonray’s picture

Status: Reviewed & tested by the community » Fixed

Applied to CVS.

Anonymous’s picture

Status: Fixed » Closed (fixed)