push the hiddenfield ctf[ID] which is deleted by merging but it seems that we need it in any cases.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@45677 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Normann Lou 2007-11-26 21:19:02 +00:00
parent 4fcb294634
commit 6544778094

View File

@ -206,6 +206,7 @@ class MemberTableField extends ComplexTableField {
// the ID field confuses the Controller-logic in finding the right view for ReferencedField
$detailFields->removeByName('ID');
$detailFields->push(new HiddenField("ctf[ID]"," ",$ID));
// add a namespaced ID instead thats "converted" by saveComplexTableField()
$detailFields->push(new HiddenField("ctf[childID]","",$childID));