Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

2.10: lift-record

  • Loading branch information...
commit 985a97594db16e6e33f596538af02ab8a4c1331d 1 parent d175b71
@nafg nafg authored
View
2  persistence/record/src/main/scala/net/liftweb/record/field/EnumField.scala
@@ -70,7 +70,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
@@ -52,7 +52,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
}
View
1  persistence/record/src/test/scala/net/liftweb/record/FieldSpec.scala
@@ -245,6 +245,7 @@ object FieldSpec extends Specification {
optional.valueBox must_== Empty
}
}
+ success
}
def passConversionTests[A](example: A, mandatory: MandatoryTypedField[A], jsexp: JsExp, jvalue: JValue, formPattern: Box[NodeSeq]): Fragment = {

1 comment on commit 985a975

@fmpwizard
Owner

+1

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