diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-05-12 21:51:06 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-05-12 21:51:06 +0000 |
commit | 3c1f2dfdb82656dc47a1cb467d03e09e52792f24 (patch) | |
tree | 490a63fcaab8213346bb80657e61cde2245bf010 /h-source/Application/Controllers/PrintersController.php | |
parent | 1b84f9bcf2d480431608d8fb08d0671bc945211d (diff) |
h-source:added the other_names entry
Diffstat (limited to 'h-source/Application/Controllers/PrintersController.php')
-rw-r--r-- | h-source/Application/Controllers/PrintersController.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/h-source/Application/Controllers/PrintersController.php b/h-source/Application/Controllers/PrintersController.php index 0251808..4a0b29e 100644 --- a/h-source/Application/Controllers/PrintersController.php +++ b/h-source/Application/Controllers/PrintersController.php @@ -72,6 +72,7 @@ class PrintersController extends GenericController "+checkLength|49" => "driver", "++checkLength|49" => "kernel", "++checkMatch|/^[a-zA-Z0-9\-\_\.\+\s\/\,\:\;\(\)\[\]]+$/" => "driver|only the following characters are allowed for the <i>driver</i> entry: a-z A-Z 0-9 - _ . + s / , : ; ( ) [ ]", + "+++checkLength|1000" => "other_names|the <i>other names</i> entry exceeds the value of 1000 characters", ); $this->m['HardwareModel']->softConditions['insert'] = array( @@ -80,9 +81,10 @@ class PrintersController extends GenericController "+checkLength|49" => "driver", "++checkLength|49" => "kernel", "++checkMatch|/^[a-zA-Z0-9\-\_\.\+\s\/\,\:\;\(\)\[\]]+$/" => "driver|only the following characters are allowed for the <i>driver</i> entry: a-z A-Z 0-9 - _ . + s / , : ; ( ) [ ]", + "+++checkLength|1000" => "other_names|the <i>other names</i> entry exceeds the value of 1000 characters", ); - $this->m['HardwareModel']->setFields('model,kernel,description,compatibility,distribution,comm_year,pci_id,driver,interface,subtype','sanitizeAll'); + $this->m['HardwareModel']->setFields('model,kernel,description,compatibility,distribution,comm_year,pci_id,driver,interface,subtype,other_names','sanitizeAll'); $argKeys = array( 'page:forceNat' => 1, |