Index: trunk/extensions/SemanticForms/includes/SF_FormField.php |
— | — | @@ -272,11 +272,12 @@ |
273 | 273 | } |
274 | 274 | if ( ! $part_of_multiple ) { $text .= "| "; } |
275 | 275 | $text .= "{{{field|" . $this->template_field->getFieldName(); |
276 | | - // TODO - why is there an input type field in both the form field and the template |
277 | | - // field? One of them should probably be removed. |
| 276 | + // TODO - why is there an input type field in both the form |
| 277 | + // field and the template field? One of them should probably |
| 278 | + // be removed. |
278 | 279 | if ( $this->mIsHidden ) { |
279 | 280 | $text .= "|hidden"; |
280 | | - } elseif ( !is_null( $this->getInputType() ) ) { |
| 281 | + } elseif ( $this->getInputType() != '' ) { |
281 | 282 | $text .= "|input type=" . $this->getInputType(); |
282 | 283 | } elseif ( $this->template_field->getInputType() != '' ) { |
283 | 284 | $text .= "|input type=" . $this->template_field->getInputType(); |