From 7e9da6dc98c5f80beeb39fa31f5a9b7044fd581c Mon Sep 17 00:00:00 2001 From: ovclas Date: Fri, 30 Sep 2011 08:49:02 +0000 Subject: [PATCH] issue 207 whenempty all trash, return validator error message. this bug fixed git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9459 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/comment/comment.controller.php | 1 + modules/trash/ruleset/emptyTrash.xml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/comment/comment.controller.php b/modules/comment/comment.controller.php index 4aef6894f..fd0d2e5a0 100644 --- a/modules/comment/comment.controller.php +++ b/modules/comment/comment.controller.php @@ -438,6 +438,7 @@ { $this->_deleteDeclaredComments($args); $this->_deleteVotedComments($args); + return new Object(0, 'success'); } /** diff --git a/modules/trash/ruleset/emptyTrash.xml b/modules/trash/ruleset/emptyTrash.xml index 9ae97d3f6..669ec4ff4 100644 --- a/modules/trash/ruleset/emptyTrash.xml +++ b/modules/trash/ruleset/emptyTrash.xml @@ -3,6 +3,8 @@ - + + +