Closed (fixed)
Project:
Profile 2
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Aug 2010 at 08:02 UTC
Updated:
25 Jan 2011 at 15:10 UTC
Need to crib from node_type_form_validate() so changes of type machine name are handled.
Comments
Comment #1
fagofield API changes should already be fine thanks to the CRUD api, however we need to prevent duplicates + enforce no special characters are used.
Comment #2
fagothanks to the new machine name element, this should be fine now.
Comment #4
reptilex commentedThanks for the work on the module.
I installed the latest version available today (7 Jan 2011). Set up a few fields, than tried to change the machine name, my fields disappeared and I had a Notice:
"Notice: Undefined index: mainprofil in _field_ui_bundle_admin_path() (line 310 of /Library/WebServer/Documents/nefia7/modules/field_ui/field_ui.module)."
When I changed it back again, my fields reapeared but I have a similar notice:
"Notice: Undefined index: main in _field_ui_bundle_admin_path() (line 310 of /Library/WebServer/Documents/nefia7/modules/field_ui/field_ui.module)."
This is hardly the expected behaviour, or is this a "feature"? ;). Maybe it is an underlying problem in core, I think I have not done a machine name change before.
Sidenote/question, you don't happen to know how I could add separators between the fields, do you?
Comment #5
fagothanks, indeed this was broken. There was a bug in the entity API causing this, please update the entity API to the next dev snapshot - then it should work.