From fb6bab202b540edf0805f41b2fb3d2de4824a89c Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 8 May 2008 23:12:34 +0000 Subject: [PATCH] #2447 - Bug in editing comment git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2.2@54205 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/ComplexTableField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/ComplexTableField.php b/forms/ComplexTableField.php index e3f078616..66beeecbb 100755 --- a/forms/ComplexTableField.php +++ b/forms/ComplexTableField.php @@ -273,7 +273,7 @@ JS; // If the fieldset is passed, use it, else use the formfields returned // from the object via a string method call. if(is_a($this->detailFormFields,"Fieldset")){ - $detailFields = $this->detailFormFields; + $detailFields = clone $this->detailFormFields; } else if( isset( $childData ) && is_string($this->detailFormFields)){ $functioncall = $this->detailFormFields; if($childData->hasMethod($functioncall)){