mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
827224b47f
commit
7016541b65
@ -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")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user