r51343 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51342‎ | r51343 | r51344 >
Date:13:44, 2 June 2009
Author:yaron
Status:deferred
Tags:
Comment:
Fixed setting of field name
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_CreateClass.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_CreateClass.php
@@ -49,7 +49,9 @@
5050 # cycle through the query values, setting the appropriate local variables
5151 $property_name = $wgRequest->getVal("property_name_$i");
5252 if ($property_name != '') {
53 - $field_name = $property_name;
 53+ $field_name = $wgRequest->getVal("field_name_$i");
 54+ if ($field_name === '')
 55+ $field_name = $property_name;
5456 $property_type = $wgRequest->getVal("property_type_$i");
5557 $allowed_values = $wgRequest->getVal("allowed_values_$i");
5658 $is_list = $wgRequest->getCheck("is_list_$i");

Status & tagging log