for an anonymous user - if I click on the file link I go to the enter your email address form - that works fine (even validates email) - when I click on submit on the email form I get the file download and it updates the filefield_track table but the page doesn't redirect back the the node page - it just stays on the email form.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | redirect_doesnt_work-1799984-4.patch | 1.18 KB | chromix |
| #2 | filefield_track-1799984.patch | 697 bytes | gaele |
Comments
Comment #1
gaele commentedClicking submit again results in this error:
Fatal error: Call to undefined function db_fetch_object() in /sites/all/modules/filefield_track/filefield_track.inc on line 27Comment #2
gaele commentedThis patch solves the fatal error, not the redirect not working.
Comment #3
gaele commentedThe redirect not working may be related to this: http://api.drupal.org/api/drupal/developer%21topics%21forms_api_referenc...
I couldn't make it work yet.
Does this work in D6?
Comment #4
chromix commentedThe redirect as written won't work because page execution stops once file_transfer is called. See:
http://api.drupal.org/api/drupal/includes%21file.inc/function/file_trans...
If you try to call drupal_goto() rather than drupal_exit(), you get an error since the file never terminates.
I'm adding a link back to the original content as a work around.
Comment #5
chromix commentedin the next dev release
Comment #7
april26 commentedThere is no Dev release since 2012, and this version still doesn't redirect back to the original page? I assume it only fixed the error message and not the redirect?