From d13569422c4bff80d4b021710927e4cf68020ff3 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 16 Sep 2007 16:31:50 +0000 Subject: [PATCH] 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 --- code/GenericDataAdmin.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/GenericDataAdmin.php b/code/GenericDataAdmin.php index f3ead592..b80e9942 100755 --- a/code/GenericDataAdmin.php +++ b/code/GenericDataAdmin.php @@ -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 */