mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
Merge pull request #153 from silverstripe-rebelalliance/trac/7427-add-responses
BUGFIX: Add batch handler status messages (fixes #7427)
This commit is contained in:
commit
549a9b5739
@ -78,7 +78,7 @@ class CMSBatchAction_Delete extends CMSBatchAction {
|
||||
|
||||
}
|
||||
|
||||
return Convert::raw2json($status);
|
||||
return $this->response(_t('CMSBatchActions.DELETED_DRAFT_PAGES', 'Deleted %d pages from draft site, %d failures'), $status);
|
||||
}
|
||||
|
||||
function applicablePages($ids) {
|
||||
@ -123,7 +123,7 @@ class CMSBatchAction_DeleteFromLive extends CMSBatchAction {
|
||||
|
||||
}
|
||||
|
||||
return Convert::raw2json($status);
|
||||
return $this->response(_t('CMSBatchActions.DELETED_PAGES', 'Deleted %d pages from published site, %d failures'), $status);
|
||||
}
|
||||
|
||||
function applicablePages($ids) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user