Skip to content
This repository has been archived by the owner on Apr 12, 2018. It is now read-only.

Commit

Permalink
Issue #820. Proper assignment of unique field id
Browse files Browse the repository at this point in the history
  • Loading branch information
dpp authored and indrajitr committed Jan 1, 2011
1 parent b21455e commit edd7b8a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ trait AbstractScreen extends Factory {

def setFilter: List[ValueType => ValueType] = Nil

override lazy val uniqueFieldId: Box[String] = Full("I"+Helpers.hash(this.getClass.getName))
override lazy val uniqueFieldId: Box[String] = Full(Helpers.nextFuncName)

override def toString = is.toString
}
Expand Down Expand Up @@ -603,7 +603,7 @@ trait ScreenWizardRendered {
def bindFieldLine(xhtml: NodeSeq): NodeSeq = {
fields.flatMap {
f =>
val curId = f.field.uniqueFieldId openOr randomString(20)
val curId = f.field.uniqueFieldId openOr ("I"+randomString(20))
val myNotices = notices.filter(fi => fi._3.isDefined && fi._3 == f.field.uniqueFieldId)
def doLabel(in: NodeSeq): NodeSeq =
myNotices match {
Expand Down

0 comments on commit edd7b8a

Please sign in to comment.