Closed (fixed)
Project:
FileField Sources
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2010 at 13:50 UTC
Updated:
2 Mar 2010 at 20:17 UTC
I'm a bit timid about posting this as a bug because it only appears to be a problem with a Pressflow install.
Anyway. What happens is that when a JavaScript function is called via the "choose", "remove" or "transfer" buttons the field entirely disappears.
First I thought this was a JS/Ajax problem (I still think it's most likely an Ajax one) but then I went through the Drupal/Pressflow include files and this seems to be residing in either common.inc or bootstrap.inc.
Anyone have similar problems or an idea of how to fix this?
| Comment | File | Size | Author |
|---|---|---|---|
| ffsb1.jpg | 22.84 KB | karljohann |
Comments
Comment #1
david straussThe fact that the problem may be related to common.inc or bootstrap.inc does not, in any way, indicate that this may be a Pressflow issue. The only way to determine if it is a Pressflow issue is to swap in standard Drupal core and see if the problem persists.
Comment #2
karljohann commentedAlready done that. That's why I know it's a Pressflow issue.
Comment #3
david straussThe only change in Pressflow that would affect AJAX is using the native PHP JSON encoding instead of a Drupal one, but that's the same change that's in Drupal 7, so you may be seeing reliance of this module on a glitch in the Drupal 6 JSON encoder.
Comment #4
david straussIf you can catch us on the #pressflow IRC channel on Freenode, we can work through this in more detail.
Comment #5
david straussI've posted this as bug #514941 on Pressflow's Launchpad project:
https://bugs.launchpad.net/pressflow/+bug/514941
Comment #6
ManyNancy commentedSubscribe.
Comment #7
karljohann commentedYep, that's exactly it, the problem lies in the drupal_to_js function.
I have to admit I'm not familiar enough with the architecture of Drupal -> filefield -> imagefield -> filefield sources to figure out exactly what javascript is causing this so I just replaced the drupal_to_js function in Pressflow with the one from Drupal 6. For now that'll have to do.
Thanks a lot David, big fan of your work :)
Comment #8
quicksketchUnless there's something that can be done in FileField Sources, it doesn't make sense to keep this open here.