Skip to content

Commit 727a3db

Browse files
Fixed reversed key values
1 parent 03792cb commit 727a3db

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Plugin/Field/Converters/CampusFieldTypeConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public override FormElementItem Convert( IFieldType fieldType, AttributeCache at
3333
{
3434
Type = FormElementType.Picker,
3535
Keyboard = Keyboard.Text,
36-
Options = CampusCache.All().ToDictionary( c => c.Name, c => c.Guid.ToString() )
36+
Options = CampusCache.All().ToDictionary( c => c.Guid.ToString(), c => c.Name )
3737
};
3838

3939
return element;

Plugin/Field/Converters/DefinedValueTypeConverter.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public override FormElementItem Convert( IFieldType fieldType, AttributeCache at
5353

5454
if ( definedTypeValue != null )
5555
{
56-
element.Options = values.ToDictionary( dv => dv.Value, dv => dv.Guid.ToString() );
56+
element.Options = values.ToDictionary( dv => dv.Guid.ToString(), dv => dv.Value );
5757
}
5858

5959
var allowmultiple = attribute.QualifierValues.GetValueOrNull( "allowmultiple" );
@@ -63,7 +63,6 @@ public override FormElementItem Convert( IFieldType fieldType, AttributeCache at
6363
}
6464
}
6565

66-
6766
return element;
6867
}
6968
}

0 commit comments

Comments
 (0)