aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Models
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Models')
-rw-r--r--h-source/Application/Models/HardwareModel.php5
-rw-r--r--h-source/Application/Models/HistoryModel.php1
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';