From d8e1f81df2e40574c0e685910bf99407f7e66017 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Wed, 13 Jul 2011 15:28:30 +0000 Subject: administrators can permanently delete a device page - part 1 --- h-source/Application/Controllers/BaseController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'h-source/Application/Controllers/BaseController.php') diff --git a/h-source/Application/Controllers/BaseController.php b/h-source/Application/Controllers/BaseController.php index 02db21d..f40d45f 100644 --- a/h-source/Application/Controllers/BaseController.php +++ b/h-source/Application/Controllers/BaseController.php @@ -135,14 +135,14 @@ class BaseController extends Controller $data['language_links'] = $this->buildLanguageLinks($this->lang); $data['lastModif'] = $this->m['HistoryModel'] - ->select() + ->clear()->select() ->inner('hardware') ->on('hardware.id_hard=history.id') - ->where(array('type'=>'hardware','gr'=>'registered','approved'=>'yes')) + ->where(array('type'=>'hardware','gr'=>'registered','deleted'=>'no')) ->orderBy('id_history desc') ->limit(5) ->send(); - + $this->append($data); $this->load('right'); } -- cgit v1.2.3