From 58214267999e01688b9d885dbf5fe02f14b3be8e Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Wed, 22 Dec 2010 23:56:20 +0000 Subject: added Realtek vendor and dropped the check upon the model name (it can be duplicated) --- h-source/Application/Include/hardware.php | 1 + h-source/Application/Models/HardwareModel.php | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'h-source') diff --git a/h-source/Application/Include/hardware.php b/h-source/Application/Include/hardware.php index f363d72..852cd62 100644 --- a/h-source/Application/Include/hardware.php +++ b/h-source/Application/Include/hardware.php @@ -83,6 +83,7 @@ class Wifi extends hardware "NEC" => "NEC", "Netgear" => "Netgear", "Ralink" => "Ralink", + "Realtek" => "Realtek", "TOSHIBA" => "TOSHIBA", "TP-LINK" => "TP-LINK", ); diff --git a/h-source/Application/Models/HardwareModel.php b/h-source/Application/Models/HardwareModel.php index c6d4772..fb41fa3 100644 --- a/h-source/Application/Models/HardwareModel.php +++ b/h-source/Application/Models/HardwareModel.php @@ -60,13 +60,13 @@ class HardwareModel extends Model_Map { '-deleted'=>'DELETED?', ); - $this->databaseConditions['insert'] = array( - 'checkUnique' => 'model', - ); - - $this->databaseConditions['update'] = array( - 'checkUniqueCompl' => 'model', - ); +// $this->databaseConditions['insert'] = array( +// 'checkUnique' => 'model', +// ); +// +// $this->databaseConditions['update'] = array( +// 'checkUniqueCompl' => 'model', +// ); parent::__construct(); } -- cgit v1.2.3