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.)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | tasks_doubleid.patch | 684 bytes | moonray |
Comments
Comment #1
moonray commentedThe 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.
Comment #2
moonray commentedApplied to CVS.
Comment #3
(not verified) commented