diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-07-10 22:46:30 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-07-10 22:46:30 +0000 |
commit | be1d2d6c4c5623c6af59cf72e74e0335d1aa6cb5 (patch) | |
tree | 746bf827e4e7845dffad02b39db9185461c710b6 /h-source/Application/Controllers/BaseController.php | |
parent | 878f70432bdfdd12a5c9788cec3d04ed862eafa6 (diff) |
improved the way the history messages are shown
Diffstat (limited to 'h-source/Application/Controllers/BaseController.php')
-rw-r--r-- | h-source/Application/Controllers/BaseController.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/h-source/Application/Controllers/BaseController.php b/h-source/Application/Controllers/BaseController.php index 697b79b..02db21d 100644 --- a/h-source/Application/Controllers/BaseController.php +++ b/h-source/Application/Controllers/BaseController.php @@ -136,7 +136,9 @@ class BaseController extends Controller $data['lastModif'] = $this->m['HistoryModel'] ->select() - ->where(array('type'=>'hardware','gr'=>'registered')) + ->inner('hardware') + ->on('hardware.id_hard=history.id') + ->where(array('type'=>'hardware','gr'=>'registered','approved'=>'yes')) ->orderBy('id_history desc') ->limit(5) ->send(); |