diff options
Diffstat (limited to 'h-source/Application/Models')
-rw-r--r-- | h-source/Application/Models/HardwareModel.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/h-source/Application/Models/HardwareModel.php b/h-source/Application/Models/HardwareModel.php index 11aea59..d19cfbd 100644 --- a/h-source/Application/Models/HardwareModel.php +++ b/h-source/Application/Models/HardwareModel.php @@ -81,6 +81,13 @@ class HardwareModel extends Model_Map { $this->values['deleted'] = 'no'; } } + else if (isset($this->values['deleted'])) + { + if (strcmp($this->values['deleted'],'no') === 0) + { + $this->values['approved'] = 'yes'; + } + } return parent::update($id); } |