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
This commit is contained in:
Normann Lou 2008-11-12 02:18:11 +00:00
parent 827224b47f
commit 7016541b65

View File

@ -517,7 +517,7 @@ class ModelAdmin_CollectionController extends Controller {
} else { } else {
return new HTTPResponse( return new HTTPResponse(
$resultsForm->forTemplate(), $resultsForm->forTemplate(),
404, 200,
_t('ModelAdmin.NORESULTS',"Your search didn't return any matching items") _t('ModelAdmin.NORESULTS',"Your search didn't return any matching items")
); );
} }