Download & Extend

handle changes of profile type machine name

Project:Profile 2
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Need to crib from node_type_form_validate() so changes of type machine name are handled.

Comments

#1

field API changes should already be fine thanks to the CRUD api, however we need to prevent duplicates + enforce no special characters are used.

#2

Status:active» fixed

thanks to the new machine name element, this should be fine now.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#4

Status:closed (fixed)» needs review

Thanks 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?

#5

Status:needs review» fixed

thanks, 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.

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here