This is a new one for me and I can’t figure out what is going on for the life of me.
The error below is displayed when trying to access the field settings again after initially creating the field.
And other things are screwy as well. Like when viewing the field in a channel entry form, the ID is 1 when that is not the field ID.
I’m about to pull my hair out on this one. It’s crazy.
Ugh, okay. I feel like this has bitten me before. I was taking the array passed into the save_settings
method, modifying/verifying my data, then saving it. But EE passes in a whole bunch of other data on that array and apparently returning it all really freaks EE out. It‘s easy enough to work around when I remember what the problem is, but it does seem odd that saving data passed into the method would cause EE to freak, no?
Sorry about that, yeah I think we’ve helped you with this before. Basically only return what you need to from save_settings()
, instead of what is effectively the entire POST array, and you should be good. There’s an array merge happening somewhere that merges your field settings into the main field settings and seems to cause this.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.