r89264 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89263‎ | r89264 | r89265 >
Date:15:25, 1 June 2011
Author:yaron
Status:deferred
Tags:
Comment:
TemplateField's field_type_id field changed to property_type
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormField.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormField.php
@@ -144,12 +144,12 @@
145145
146146 END;
147147 global $sfgFormPrinter;
148 - if ( is_null( $template_field->field_type_id ) ) {
 148+ if ( is_null( $template_field->property_type ) ) {
149149 $default_input_type = null;
150150 $possible_input_types = $sfgFormPrinter->getAllInputTypes();
151151 } else {
152 - $default_input_type = $sfgFormPrinter->getDefaultInputType( $template_field->is_list, $template_field->field_type_id );
153 - $possible_input_types = $sfgFormPrinter->getPossibleInputTypes( $template_field->is_list, $template_field->field_type_id );
 152+ $default_input_type = $sfgFormPrinter->getDefaultInputType( $template_field->is_list, $template_field->property_type );
 153+ $possible_input_types = $sfgFormPrinter->getPossibleInputTypes( $template_field->is_list, $template_field->property_type );
154154 }
155155 $text .= $this->inputTypeDropdownHTML( $field_form_text, $default_input_type, $possible_input_types, $template_field->input_type );
156156
@@ -252,7 +252,7 @@
253253 // type with 'autocomplete' specified, set the necessary
254254 // parameters.
255255 if ( ! array_key_exists( 'autocompletion source', $other_args ) ) {
256 - if ( $this->template_field->field_type_id == '_wpg' ) {
 256+ if ( $this->template_field->property_type == '_wpg' ) {
257257 $other_args['autocompletion source'] = $this->template_field->semantic_property;
258258 $other_args['autocomplete field type'] = 'relation';
259259 } elseif ( array_key_exists( 'autocomplete', $other_args ) || array_key_exists( 'remote autocompletion', $other_args ) ) {