Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

FieldSet->renameField


Reply


3 Posts   1291 Views

Avatar
BLU42 Media

Community Member, 71 Posts

2 August 2008 at 6:10am

Edited: 02/08/2008 6:11am

I was trying to use the renameField function as outlined [url=http://doc.silverstripe.com/doku.php?id=getcmsfields&s=renamefield#renaming_fields]in the docs[/url] and found that it was missing! I was able to obtain the code from Trac, though I was under the impression that this should have been in 2.2.2:

[url=http://open.silverstripe.com/browser/modules/sapphire/branches/2.2.2-assets/forms/FieldSet.php?rev=53319]Changeset 53319[/url]

Avatar
Willr

Forum Moderator, 5513 Posts

2 August 2008 at 8:13pm

It looks like matt has just recently added it on that custom branch. I think I added that to the docs after I found that in the code while working on that 2.2.2assets branch... It will be part of 2.2.3 or whenever we merge the changes from that branch.

I will edit the docs to prevent confusing people

Avatar
BLU42 Media

Community Member, 71 Posts

3 August 2008 at 1:14am

Hi Will-

Thanks for clearing that up for me. That is a handy little piece of code!

John