Index: trunk/extensions/SemanticMaps/includes/forminputs/SM_FormInput.php |
— | — | @@ -109,17 +109,21 @@ |
110 | 110 | |
111 | 111 | $validator = new Validator( 'form' ); // TODO |
112 | 112 | |
113 | | - /* TODO: filter these params! |
114 | | - 'service_name' => array(), |
115 | | - 'part_of_multiple' => array(), |
116 | | - 'possible_values' => array( |
117 | | - 'type' => array( 'string', 'array' ), |
118 | | - ), |
119 | | - 'is_list' => array(), |
120 | | - 'semantic_property' => array(), |
121 | | - 'value_labels' => array(), |
122 | | - */ |
| 113 | + $paramsToFilter = array( |
| 114 | + 'service_name', |
| 115 | + 'part_of_multiple', |
| 116 | + 'possible_values', |
| 117 | + 'is_list', |
| 118 | + 'semantic_property', |
| 119 | + 'value_labels' |
| 120 | + ); |
123 | 121 | |
| 122 | + foreach ( $paramsToFilter as $paramName ) { |
| 123 | + if ( aray_key_exists( $paramName, $mapProperties ) ) { |
| 124 | + unset( $mapProperties[$paramName] ); |
| 125 | + } |
| 126 | + } |
| 127 | + |
124 | 128 | $validator->setParameters( $mapProperties, $parameterInfo ); |
125 | 129 | |
126 | 130 | $validator->validateParameters(); |