Hi. Thanks for creating this useful module.

I noticed a small bug. A warning is created on an ECK entity edit/add form if the user does not have the permission to 'create and edit URL aliases'.

Warning: Invalid argument supplied for foreach() in pathauto_entity_form_alter() (line 388 of /Users/andy/web/ro2/sites/all/modules/pathauto_entity/pathauto_entity.module).

It seems like either ensuring an array is returned from pathauto_entity_alias_form, or checking for null should fix it.

cheers!

Comments

AndyThornton created an issue.

kapil.ropalekar’s picture

Hi AndyThornton,

Unable to reproduce your issue. I tried following your steps but did not get any Warning.

Can you kindly elaborate more or provide detailed steps you took ?

AndyThornton’s picture

oh - really ... sorry. we've been working on our new site for about 9 months and are about to launch, i figured that it was probably just down to ECK, but i wonder if we did something else to trigger this. let me get back to you ...

AndyThornton’s picture

darn - i cannot reproduce it from a clean site. sorry. i will keep having a poke around over the next day or two, and it it turns out it was something unique to our setup i'll let you know.