Dopry reported #370004: content_add_more_js breaks with file uploads. in the CCK queue.
I committed the patch to CCK D6, here's a D7 equivalent - I left out the $_GLOBALS['devel_shutdown'] = FALSE;, which would probably be for devel to take care of.
No real opinion myself whether that's the best way to fix that for core. Dopry submitted that on the development list : http://www.nabble.com/Re%3A-ahah%2C-drupal_json%2C-file_uploads....-td21...
| Comment | File | Size | Author |
|---|---|---|---|
| field_fix_ahah_uploads.patch | 1 KB | yched |
Comments
Comment #1
yched commented(possibly also affects poll.module's 'add more choices' ?)
Comment #3
yched commentedThis is now moot with the #ajax framework and #367567: Use AJAX framework for "Add more" / load include file containing form / introduce $form_state['build_info'].