Skip to content
This repository
Browse code

2.10: Make record compile

  • Loading branch information...
commit b95b722307f2d170582df2179d2d010dfa2f8271 1 parent b8e4419
nafg nafg authored
2  persistence/record/src/main/scala/net/liftweb/record/field/EnumField.scala
@@ -62,7 +62,7 @@ trait EnumTypedField[EnumType <: Enumeration] extends TypedField[EnumType#Value]
62 62 * is the value of the field and the second string is the Text name of the Value.
63 63 */
64 64 def buildDisplayList: List[(Box[EnumType#Value], String)] = {
65   - val options = enum.values.map(a => (Full(a), a.toString)).toList
  65 + val options = enum.values.toList.map(a => (Full(a), a.toString))
66 66 if (optional_?) (Empty, emptyOptionLabel)::options else options
67 67 }
68 68
2  persistence/record/src/main/scala/net/liftweb/record/field/EnumNameField.scala
@@ -51,7 +51,7 @@ trait EnumNameTypedField[EnumType <: Enumeration] extends TypedField[EnumType#Va
51 51 * is the value of the field and the second string is the Text name of the Value.
52 52 */
53 53 def buildDisplayList: List[(Box[EnumType#Value], String)] = {
54   - val options = enum.values.map(a => (Full(a), a.toString)).toList
  54 + val options = enum.values.toList.map(a => (Full(a), a.toString))
55 55 if (optional_?) (Empty, emptyOptionLabel)::options else options
56 56 }
57 57

0 comments on commit b95b722

Please sign in to comment.
Something went wrong with that request. Please try again.