(refs #180)Fix saving and deleting Wiki page.

This commit is contained in:
takezoe
2013-10-29 11:39:38 +09:00
parent 2642da3be3
commit afb2306904
2 changed files with 92 additions and 102 deletions

View File

@@ -195,7 +195,7 @@ trait WikiControllerBase extends ControllerBase with FlashMapSupport {
private def conflictForEdit: Constraint = new Constraint(){
override def validate(name: String, value: String): Option[String] = {
optionIf(targetWikiPage.map(_.id != params("id")).getOrElse(true)){
optionIf(targetWikiPage.map(_.id != params("id")).getOrElse(false)){
Some("Someone has edited the wiki since you started. Please reload this page and re-apply your changes.")
}
}