Comments

pol’s picture

Status: Active » Needs review
StatusFileSize
new2.17 KB

Patch for 6.x-1.x.

pol’s picture

Cleaned the patch against bad characters. Damn keyboard!

pol’s picture

Fix a bug in the patch.

pol’s picture

Damn what's going on... again a typo error :(

pol’s picture

Fix a bug when the field is not set to "unlimited".
Modified the regex to find the fields.

pol’s picture

Fix a bug in the loop.

pol’s picture

Patch improvement.

pol’s picture

New patch against 6.x-1.x.

pol’s picture

Casting as array by default.

pol’s picture

Renamed the name variable, it's a reserved word in JS and especially in Chrome.

pol’s picture

New patch.

ufku’s picture

Priority: Major » Normal
Status: Needs review » Closed (duplicate)
dmdewey’s picture

I was having the same issue and the patch was not working until I cleared the site cache. So if anyone is applying the patch and then not seeing the IMCE file browser link at all, then make sure you clear the site cache.

loziofabio’s picture

Applied the patch, cleared site cache: IMCE for FileField now works as it should ;)
Thanx for the solution.

chichilatte’s picture

Works for me, except for fields in a fieldgroup. I patched #11 patch and it seems to work now. In imce_filefield.js I changed this line:

	set.fields[fieldname] = {path: typename+'/'+field+'/'+id};

... to these lines...

	var realid = $(this).attr('id');
	realid = realid.substring(0, realid.length - ('-upload').length);
	set.fields[realid] = {path: typename+'/'+field+'/'+id};

I don't have a deep understanding of what's going on here in terms of theming (it's tag soup in there!), so it might not work in all cases. It's good for me tho.
PS Is this all something to do with the Rubik theme? I'm using it for my admin side too.

pol’s picture

Hello @chichilatte,

Is it also working for field who aren't in fieldgroups ?

Thanks.

chichilatte’s picture

Yep, fields not in fieldgroups too :)

airb’s picture

#11 worked for me.
since the creation of patch the module has changed but it's easy to "repair" manually.

thanks!

globallog’s picture

How to apply #11 patch in Drupal 7?

pol’s picture

@globallog,

The patch is for D6, you're welcome to do it for D7.
It's also useless to alarm everyone in the thread by email, we receive notifications when someone post a message.
And no, I won't do the patch for D7 as I'm not working with this module anymore.

Good luck.

IsaMic’s picture

Hi,

Attention November 29, 2013, 6.x-1.x-dev version of imce_filefield has been changed and the patch is no longer updated.