From fdd5ccda63a6c6825035f99c3e6b6df93814cebe Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Wed, 2 Mar 2011 23:48:56 +0000 Subject: vendor is now automatically obtained from vendorid, except for notebooks --- h-source/Application/Models/HardwareModel.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'h-source/Application/Models/HardwareModel.php') 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)) { -- cgit v1.2.3