Needs review
Project:
AJAX Poll
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2012 at 17:25 UTC
Updated:
26 Jan 2012 at 19:21 UTC
There is bug in ajax_poll_form_alter function in ajax_poll.module file.
If you have Ajax Poll enabled, and you are on the node edit form page where is File field that you can't upload the file. There is wrong jquery.form.js loaded. Its system library and it should be done in the this way:
drupal_add_library('system', 'jquery.form');
instead (as is now):
$form['#attached']['js'][] = 'misc/jquery.form.js';
Comments
Comment #1
quicksketchThanks, yes we should be using #attached these days now that we have it to avoid problems with the block cache. I'll take a look at this next time I'm working on AJAX Poll.