Revision: 43691
Author: yaron
Date: 2008-11-18 22:55:38 +0000 (Tue, 18 Nov 2008)
Log Message:
-----------
Added HTML-unencoding of properties' "allowed values"
Modified Paths:
--------------
trunk/extensions/SemanticForms/includes/SF_TemplateField.inc
Modified: trunk/extensions/SemanticForms/includes/SF_TemplateField.inc
===================================================================
--- trunk/extensions/SemanticForms/includes/SF_TemplateField.inc
2008-11-18 22:48:03 UTC (rev 43690)
+++ trunk/extensions/SemanticForms/includes/SF_TemplateField.inc
2008-11-18 22:55:38 UTC (rev 43691)
@@ -43,7 +43,8 @@
$this->field_type = $types[0]->getWikiValue();
foreach ($allowed_values as $value) {
- $this->possible_values[] = $value->getXSDValue();
+ // HTML-unencode each value
+ $this->possible_values[] =
html_entity_decode($value->getXSDValue());
}
// HACK - if there were any possible values, set the field
// type to be 'enumeration', regardless of what the actual type
is
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs