aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers/BaseController.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-07-13 15:28:30 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-07-13 15:28:30 +0000
commitd8e1f81df2e40574c0e685910bf99407f7e66017 (patch)
treea69b5a96dff0f22a37db460d5fb2d88ff49650ec /h-source/Application/Controllers/BaseController.php
parentbe1d2d6c4c5623c6af59cf72e74e0335d1aa6cb5 (diff)
administrators can permanently delete a device page - part 1
Diffstat (limited to 'h-source/Application/Controllers/BaseController.php')
-rw-r--r--h-source/Application/Controllers/BaseController.php6
1 files changed, 3 insertions, 3 deletions
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');
}