Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

2.10: Make record compile

  • Loading branch information...
commit b95b722307f2d170582df2179d2d010dfa2f8271 1 parent b8e4419
@nafg nafg authored
View
2  persistence/record/src/main/scala/net/liftweb/record/field/EnumField.scala
@@ -62,7 +62,7 @@ trait EnumTypedField[EnumType <: Enumeration] extends TypedField[EnumType#Value]
* is the value of the field and the second string is the Text name of the Value.
*/
def buildDisplayList: List[(Box[EnumType#Value], String)] = {
- val options = enum.values.map(a => (Full(a), a.toString)).toList
+ val options = enum.values.toList.map(a => (Full(a), a.toString))
if (optional_?) (Empty, emptyOptionLabel)::options else options
}
View
2  persistence/record/src/main/scala/net/liftweb/record/field/EnumNameField.scala
@@ -51,7 +51,7 @@ trait EnumNameTypedField[EnumType <: Enumeration] extends TypedField[EnumType#Va
* is the value of the field and the second string is the Text name of the Value.
*/
def buildDisplayList: List[(Box[EnumType#Value], String)] = {
- val options = enum.values.map(a => (Full(a), a.toString)).toList
+ val options = enum.values.toList.map(a => (Full(a), a.toString))
if (optional_?) (Empty, emptyOptionLabel)::options else options
}
Please sign in to comment.
Something went wrong with that request. Please try again.