diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-07-13 15:28:30 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-07-13 15:28:30 +0000 |
commit | d8e1f81df2e40574c0e685910bf99407f7e66017 (patch) | |
tree | a69b5a96dff0f22a37db460d5fb2d88ff49650ec /h-source/Application/Models | |
parent | be1d2d6c4c5623c6af59cf72e74e0335d1aa6cb5 (diff) |
administrators can permanently delete a device page - part 1
Diffstat (limited to 'h-source/Application/Models')
-rw-r--r-- | h-source/Application/Models/HardwareModel.php | 5 | ||||
-rw-r--r-- | h-source/Application/Models/HistoryModel.php | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/h-source/Application/Models/HardwareModel.php b/h-source/Application/Models/HardwareModel.php index d19cfbd..a1aa01b 100644 --- a/h-source/Application/Models/HardwareModel.php +++ b/h-source/Application/Models/HardwareModel.php @@ -72,6 +72,11 @@ class HardwareModel extends Model_Map { parent::__construct(); } + public function oupdate($id) + { + return $this->pUpdate($id); + } + public function pUpdate($id) { if (isset($this->values['approved'])) diff --git a/h-source/Application/Models/HistoryModel.php b/h-source/Application/Models/HistoryModel.php index daeda1f..4e345ed 100644 --- a/h-source/Application/Models/HistoryModel.php +++ b/h-source/Application/Models/HistoryModel.php @@ -28,6 +28,7 @@ class HistoryModel extends Model_Tree { $this->_where=array( 'approved' => 'hardware', + 'deleted' => 'hardware', ); $this->orderBy = 'history.id_history'; |