Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR add pass thru group and sort methods (from r99497)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@111613 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit d98563e80dfb432d896c2499a12728a69c41d857 1 parent aa6e1c3
@sminnee sminnee authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 code/Report.php
View
9 code/Report.php
@@ -318,7 +318,6 @@ static function unregister($list, $identifier) {
*/
static function get_reports($list) {
$output = array();
-
if(isset(self::$registered_reports[$list])) {
$listItems = self::$registered_reports[$list];
@@ -497,6 +496,14 @@ function sourceRecords($params, $sort, $limit) {
function title() {
return $this->baseReport->title();
}
+
+ function group() {
+ return $this->baseReport->hasMethod('group') ? $this->baseReport->group() : 'Group';
+ }
+
+ function sort() {
+ return $this->baseReport->hasMethod('sort') ? $this->baseReport->sort() : 0;
+ }
function description() {
return $this->baseReport->title();
Please sign in to comment.
Something went wrong with that request. Please try again.