Index: trunk/extensions/SemanticForms/specials/SF_CreateClass.php |
— | — | @@ -49,7 +49,9 @@ |
50 | 50 | # cycle through the query values, setting the appropriate local variables |
51 | 51 | $property_name = $wgRequest->getVal("property_name_$i"); |
52 | 52 | 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; |
54 | 56 | $property_type = $wgRequest->getVal("property_type_$i"); |
55 | 57 | $allowed_values = $wgRequest->getVal("allowed_values_$i"); |
56 | 58 | $is_list = $wgRequest->getCheck("is_list_$i"); |