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:
Ingo Schommer 2007-09-16 16:31:50 +00:00
parent 6871db7212
commit d13569422c

View File

@ -221,9 +221,13 @@ abstract class GenericDataAdmin extends LeftAndMain {
$singular_name = singleton($this->stat('data_type'))->singular_name();
$plural_name = singleton($this->stat('data_type'))->plural_name();
if (!$this->filter) {
$this->filter = array(
"ClassName" => $this->stat('data_type')
);
} else {
$this->filter = $this->filter + array("ClassName" => $this->stat('data_type'));
}
$results = $this->performSearch();
if($results) {
@ -442,7 +446,7 @@ HTML;
/**
* Save genetric data handler
* Save generic data handler
*
* @return String Statusmessage
*/