From 3c1f2dfdb82656dc47a1cb467d03e09e52792f24 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Thu, 12 May 2011 21:51:06 +0000 Subject: h-source:added the other_names entry --- h-source/Application/Controllers/SoundcardsController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'h-source/Application/Controllers/SoundcardsController.php') diff --git a/h-source/Application/Controllers/SoundcardsController.php b/h-source/Application/Controllers/SoundcardsController.php index d1386e0..a45a4eb 100644 --- a/h-source/Application/Controllers/SoundcardsController.php +++ b/h-source/Application/Controllers/SoundcardsController.php @@ -70,6 +70,7 @@ class SoundcardsController extends GenericController "+checkLength|49" => "kernel", "++checkLength|49" => "driver", "++checkMatch|/^[a-zA-Z0-9\-\_\.\+\s\/\,\:\;\(\)\[\]]+$/" => "driver|only the following characters are allowed for the driver entry: a-z A-Z 0-9 - _ . + s / , : ; ( ) [ ]", + "+++checkLength|1000" => "other_names|the other names entry exceeds the value of 1000 characters", ); $this->m['HardwareModel']->softConditions['insert'] = array( @@ -78,9 +79,10 @@ class SoundcardsController extends GenericController "+checkLength|49" => "kernel", "++checkLength|49" => "driver", "++checkMatch|/^[a-zA-Z0-9\-\_\.\+\s\/\,\:\;\(\)\[\]]+$/" => "driver|only the following characters are allowed for the driver entry: a-z A-Z 0-9 - _ . + s / , : ; ( ) [ ]", + "+++checkLength|1000" => "other_names|the other names entry exceeds the value of 1000 characters", ); - $this->m['HardwareModel']->setFields('model,kernel,description,distribution,comm_year,sound_card_works,pci_id,interface,driver','sanitizeAll'); + $this->m['HardwareModel']->setFields('model,kernel,description,distribution,comm_year,sound_card_works,pci_id,interface,driver,other_names','sanitizeAll'); $argKeys = array( 'page:forceNat' => 1, -- cgit v1.2.3