Skip to content

Commit

Permalink
Fix typo when constructing secured multi options
Browse files Browse the repository at this point in the history
s/label/nonce/
  • Loading branch information
pbrant committed Jun 4, 2013
1 parent 820a15d commit ee08fbd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/webkit/src/main/scala/net/liftweb/http/SHtml.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2099,10 +2099,10 @@ trait SHtml {
SelectableOptionWithNonce(selectableOption.value, randomString(20), selectableOption.label, selectableOption.attrs: _*)
}

val sm: Map[String, T] = Map(secure.map(v => (v.label, v.value)): _*)
val sm: Map[String, T] = Map(secure.map(v => (v.nonce, v.value)): _*)

val defaultNonce: Seq[String] = default.flatMap { defaultOption =>
secure.find(_.value == defaultOption).map(_.label)
secure.find(_.value == defaultOption).map(_.nonce)
}

val nonces: List[SelectableOption[String]] = secure.map { selectableOptionWithNonce =>
Expand All @@ -2111,6 +2111,7 @@ trait SHtml {

def process(info: List[String]): Unit = onSubmit(info.flatMap(sm.get))


(nonces, defaultNonce, LFuncHolder(process))
}

Expand Down

0 comments on commit ee08fbd

Please sign in to comment.