Active
Project:
Pathauto Entity
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2016 at 15:25 UTC
Updated:
7 Jun 2016 at 14:50 UTC
Jump to comment: Most recent
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
Comment #2
kapil.ropalekar commentedHi 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 ?
Comment #3
AndyThornton commentedoh - 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 ...
Comment #4
AndyThornton commenteddarn - 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.