diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-03-02 23:48:56 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-03-02 23:48:56 +0000 |
commit | fdd5ccda63a6c6825035f99c3e6b6df93814cebe (patch) | |
tree | 5ba045ff3cb29d94f8216706130471e8fa6c71a7 /h-source/Application/Models/HardwareModel.php | |
parent | 632f611689562bb79dfb18065b6d0851a5c2077e (diff) |
vendor is now automatically obtained from vendorid, except for notebooks
Diffstat (limited to 'h-source/Application/Models/HardwareModel.php')
-rw-r--r-- | h-source/Application/Models/HardwareModel.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/h-source/Application/Models/HardwareModel.php b/h-source/Application/Models/HardwareModel.php index 7df7a65..9633eac 100644 --- a/h-source/Application/Models/HardwareModel.php +++ b/h-source/Application/Models/HardwareModel.php @@ -109,7 +109,7 @@ class HardwareModel extends Model_Map { //save the old fields in the revisions table $this->setWhereQueryClause(array('id_hard' => $clean['id'])); - $oldStruct = $this->getFields($this->fields.',created_by,updated_by,update_date,type,id_hard'); + $oldStruct = $this->getFields($this->fields.',vendor,created_by,updated_by,update_date,type,id_hard'); if (count($oldStruct > 0)) { @@ -151,7 +151,7 @@ class HardwareModel extends Model_Map { //save the old fields in the revisions table $this->setWhereQueryClause(array('id_hard'=>$clean['id_hard'])); - $oldStruct = $this->getFields($this->fields.',created_by,updated_by,update_date,type,id_hard'); + $oldStruct = $this->getFields($this->fields.',vendor,created_by,updated_by,update_date,type,id_hard'); if (count($oldStruct > 0)) { @@ -159,7 +159,7 @@ class HardwareModel extends Model_Map { { //get the values of the revision $revisions->setWhereQueryClause(array('id_rev'=>$clean['id_rev'])); - $newStruct = $revisions->getFields($this->fields.',created_by,updated_by,update_date,type'); + $newStruct = $revisions->getFields($this->fields.',vendor,created_by,updated_by,update_date,type'); if (count($newStruct > 0)) { |