http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89264
Revision: 89264
Author: yaron
Date: 2011-06-01 15:25:19 +0000 (Wed, 01 Jun 2011)
Log Message:
-----------
TemplateField's field_type_id field changed to property_type
Modified Paths:
--------------
trunk/extensions/SemanticForms/includes/SF_FormField.php
Modified: trunk/extensions/SemanticForms/includes/SF_FormField.php
===================================================================
--- trunk/extensions/SemanticForms/includes/SF_FormField.php 2011-06-01
15:15:24 UTC (rev 89263)
+++ trunk/extensions/SemanticForms/includes/SF_FormField.php 2011-06-01
15:25:19 UTC (rev 89264)
@@ -144,12 +144,12 @@
END;
global $sfgFormPrinter;
- if ( is_null( $template_field->field_type_id ) ) {
+ if ( is_null( $template_field->property_type ) ) {
$default_input_type = null;
$possible_input_types =
$sfgFormPrinter->getAllInputTypes();
} else {
- $default_input_type =
$sfgFormPrinter->getDefaultInputType( $template_field->is_list,
$template_field->field_type_id );
- $possible_input_types =
$sfgFormPrinter->getPossibleInputTypes( $template_field->is_list,
$template_field->field_type_id );
+ $default_input_type =
$sfgFormPrinter->getDefaultInputType( $template_field->is_list,
$template_field->property_type );
+ $possible_input_types =
$sfgFormPrinter->getPossibleInputTypes( $template_field->is_list,
$template_field->property_type );
}
$text .= $this->inputTypeDropdownHTML( $field_form_text,
$default_input_type, $possible_input_types, $template_field->input_type );
@@ -252,7 +252,7 @@
// type with 'autocomplete' specified, set the necessary
// parameters.
if ( ! array_key_exists( 'autocompletion source', $other_args )
) {
- if ( $this->template_field->field_type_id == '_wpg' ) {
+ if ( $this->template_field->property_type == '_wpg' ) {
$other_args['autocompletion source'] =
$this->template_field->semantic_property;
$other_args['autocomplete field type'] =
'relation';
} elseif ( array_key_exists( 'autocomplete',
$other_args ) || array_key_exists( 'remote autocompletion', $other_args ) ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs