Browse Source

Add the order value and a default setting for it.

Signed-off-by: Suki <[email protected]>
Suki 10 years ago
parent
commit
9279b94858
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Sources/ManageSettings.php

+ 3 - 1
Sources/ManageSettings.php

@@ -1467,7 +1467,7 @@ function EditCustomProfiles()
 	{
 		$request = $smcFunc['db_query']('', '
 			SELECT
-				id_field, col_name, field_name, field_desc, field_type, field_length, field_options,
+				id_field, col_name, field_name, field_desc, field_type, field_order, field_length, field_options,
 				show_reg, show_display, show_profile, private, active, default_value, can_search,
 				bbc, mask, enclose, placement
 			FROM {db_prefix}custom_fields
@@ -1495,6 +1495,7 @@ function EditCustomProfiles()
 				'reg' => $row['show_reg'],
 				'display' => $row['show_display'],
 				'type' => $row['field_type'],
+				'order' => $row['field_order'],
 				'max_length' => $row['field_length'],
 				'rows' => $rows,
 				'cols' => $cols,
@@ -1524,6 +1525,7 @@ function EditCustomProfiles()
 			'reg' => false,
 			'display' => false,
 			'type' => 'text',
+			'order' => 0,
 			'max_length' => 255,
 			'rows' => 4,
 			'cols' => 30,