diff --git a/app/db/impl/schema/PageSchema.scala b/app/db/impl/schema/PageSchema.scala index 67bcbe3fd..88c6d6518 100644 --- a/app/db/impl/schema/PageSchema.scala +++ b/app/db/impl/schema/PageSchema.scala @@ -18,8 +18,9 @@ class PageSchema(override val service: ModelService) this.service.find[Page]( this.modelClass, p => - p.projectId === page.projectId && p.name.toLowerCase === page.name.toLowerCase - && page.parentId.isDefined && page.parentId.fold(true: Rep[Boolean])(p.parentId.get === _) + p.projectId === page.projectId && p.name.toLowerCase === page.name.toLowerCase && page.parentId.fold( + true: Rep[Boolean] + )(p.parentId.get === _) ) }