mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX: Add batch handler status messages (fixes #7427)
7427 was mostly fixed by Ingos previous patch. But two batch actions, delete from draft site and delete from published site werent returning status messages. Abstracted out the status preperation code that the batch actions that were returning status messages were using, and used that to add status messages to the problem two
This commit is contained in:
parent
211ce61ba7
commit
8c05f3554f
@ -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…
Reference in New Issue
Block a user