mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
bfojcapell: some small corrections (issets, typos..) and a more extensible support for search filters
(merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@42132 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
6871db7212
commit
d13569422c
@ -221,9 +221,13 @@ abstract class GenericDataAdmin extends LeftAndMain {
|
|||||||
|
|
||||||
$singular_name = singleton($this->stat('data_type'))->singular_name();
|
$singular_name = singleton($this->stat('data_type'))->singular_name();
|
||||||
$plural_name = singleton($this->stat('data_type'))->plural_name();
|
$plural_name = singleton($this->stat('data_type'))->plural_name();
|
||||||
|
if (!$this->filter) {
|
||||||
$this->filter = array(
|
$this->filter = array(
|
||||||
"ClassName" => $this->stat('data_type')
|
"ClassName" => $this->stat('data_type')
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
$this->filter = $this->filter + array("ClassName" => $this->stat('data_type'));
|
||||||
|
}
|
||||||
|
|
||||||
$results = $this->performSearch();
|
$results = $this->performSearch();
|
||||||
if($results) {
|
if($results) {
|
||||||
@ -442,7 +446,7 @@ HTML;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Save genetric data handler
|
* Save generic data handler
|
||||||
*
|
*
|
||||||
* @return String Statusmessage
|
* @return String Statusmessage
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user