http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89912
Revision: 89912
Author: yaron
Date: 2011-06-12 02:58:13 +0000 (Sun, 12 Jun 2011)
Log Message:
-----------
Added setting of 'property_type' field, passed in to form inputs (currently
used only by dropdown and radiobutton, to check for boolean properties)
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-12
02:51:53 UTC (rev 89911)
+++ trunk/extensions/SemanticForms/includes/SF_FormField.php 2011-06-12
02:58:13 UTC (rev 89912)
@@ -268,8 +268,11 @@
$other_args['value_labels'] =
$this->template_field->value_labels;
}
$other_args['is_list'] = ( $this->is_list ||
$this->template_field->is_list );
- if ( $this->template_field->semantic_property != '' && !
array_key_exists( 'semantic_property', $other_args ) )
+ if ( $this->template_field->semantic_property != '' &&
+ ! array_key_exists( 'semantic_property', $other_args )
) {
$other_args['semantic_property'] =
$this->template_field->semantic_property;
+ $other_args['property_type'] =
$this->template_field->property_type;
+ }
// If autocompletion hasn't already been hardcoded in the form,
// and it's a property of type page, or a property of another
// type with 'autocomplete' specified, set the necessary
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs