From 7016541b658c30f9b3751f8bfe385e7a15c83c3a Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Wed, 12 Nov 2008 02:18:11 +0000 Subject: [PATCH] APICHANGE: even when no results found, the HTTPResponse should return a "200" HTTPResponse rather than "404" HTTPResponse, otherwise, the right panel didn't refresh the result table, and the error message shows up. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65669 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/ModelAdmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ModelAdmin.php b/code/ModelAdmin.php index 6c44bf32..3f6b79fa 100644 --- a/code/ModelAdmin.php +++ b/code/ModelAdmin.php @@ -517,7 +517,7 @@ class ModelAdmin_CollectionController extends Controller { } else { return new HTTPResponse( $resultsForm->forTemplate(), - 404, + 200, _t('ModelAdmin.NORESULTS',"Your search didn't return any matching items") ); }