Commit 68425efb by Anton Sudak

Fix NPE on empty name extension

parent be196a5c
......@@ -37,15 +37,15 @@
<input type="hidden" name="id" value="@user.getId">
<fieldset>
@if(partyNameExtenstion.toString().isEmpty) {
@Option(partyNameExtenstion).map(_.toString()).filter(_.nonEmpty).map { _ =>
@partyNameExtenstion
}.getOrElse {
@inputText(
userForm("name"),
'class -> "form-control",
'placeholder -> Messages("backend.user.name"),
'_label -> Messages("backend.user.name")
)
} else {
@partyNameExtenstion
}
@inputText(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment