diff options
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 6521e1b..8353809 100644 --- a/h-source/Application/Controllers/PrintersController.php +++ b/h-source/Application/Controllers/PrintersController.php @@ -51,6 +51,7 @@ class PrintersController extends GenericController "+checkIsStrings|".Printer::compatibilityList() => "compatibility", "++checkIsStrings|".Printer::$commYear => "comm_year", "+++checkIsStrings|".Printer::$interface => "interface", + "++++checkIsStrings|".Printer::$subtype => "subtype", ); $this->m['HardwareModel']->strongConditions['insert'] = array( @@ -62,6 +63,7 @@ class PrintersController extends GenericController "+checkIsStrings|".Printer::compatibilityList() => "compatibility", "++checkIsStrings|".Printer::$commYear => "comm_year", "+++checkIsStrings|".Printer::$interface => "interface", + "++++checkIsStrings|".Printer::$subtype => "subtype", ); $this->m['HardwareModel']->softConditions['update'] = array( @@ -82,7 +84,7 @@ class PrintersController extends GenericController "++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 / , : ; ( ) [ ]", ); - $this->m['HardwareModel']->setFields('vendor,model,kernel,description,compatibility,distribution,comm_year,pci_id,driver,interface','sanitizeAll'); + $this->m['HardwareModel']->setFields('vendor,model,kernel,description,compatibility,distribution,comm_year,pci_id,driver,interface,subtype','sanitizeAll'); $argKeys = array( 'page:forceNat' => 1, |