diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-07-18 22:55:53 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-07-18 22:55:53 +0000 |
commit | 3ca3ecdd45838debc75d6feba2a452ef4d91431a (patch) | |
tree | e4f8d68d65579d0b4463a6be2aa39982be9878de /h-source/Application/Models/GenericModel.php | |
parent | cfe669be36d115c3bc4c98c8215c51480185e64e (diff) |
deleted pages are no more visible on the filters
Diffstat (limited to 'h-source/Application/Models/GenericModel.php')
-rw-r--r-- | h-source/Application/Models/GenericModel.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/h-source/Application/Models/GenericModel.php b/h-source/Application/Models/GenericModel.php index 0ccd332..9a619fd 100644 --- a/h-source/Application/Models/GenericModel.php +++ b/h-source/Application/Models/GenericModel.php @@ -56,4 +56,14 @@ class GenericModel extends Model_Tree { { return getDiffArray($this->diffFields, $oldArray, $newArray); } + + //create the $_popupWhere property + public function createPopupWhere($list) + { + $listArray = explode(',',$list); + foreach ($listArray as $field) + { + $this->_popupWhere[$field] = 'type="'.$this->type.'" and deleted="no" and cleared="no"'; + } + } }
\ No newline at end of file |