/** * Ensure the fields on the add and edit forms for each option have the correct * {@link Attribute} ID set. * * @see ComplexTableField::getFieldsFor() * @return FieldSet */ function getFieldsFor($childData) { $detailFields = parent::getFieldsFor($childData); $detailFields->removeByName('AttributeID'); $detailFields->push(new HiddenField('AttributeID', '', $this->attributeID)); return $detailFields; }