From bc80c1eff3a462e517b5ef528f970a035370a54a Mon Sep 17 00:00:00 2001 From: Andrew Short Date: Sun, 13 Dec 2009 05:22:33 +0000 Subject: [PATCH] MINOR: Made ComplexTableField sub-forms testable by returning rather than echoing results. From: Andrew Short git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@95035 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/ComplexTableField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forms/ComplexTableField.php b/forms/ComplexTableField.php index a2a4a0ed4..2a442be32 100755 --- a/forms/ComplexTableField.php +++ b/forms/ComplexTableField.php @@ -701,7 +701,7 @@ class ComplexTableField_ItemRequest extends RequestHandler { } $this->methodName = "show"; - echo $this->renderWith($this->ctf->templatePopup); + return $this->renderWith($this->ctf->templatePopup); } /** @@ -728,7 +728,7 @@ class ComplexTableField_ItemRequest extends RequestHandler { $this->methodName = "edit"; - echo $this->renderWith($this->ctf->templatePopup); + return $this->renderWith($this->ctf->templatePopup); } function delete() {