diff --git a/src/main/scala/com/campudus/tableaux/controller/TableauxController.scala b/src/main/scala/com/campudus/tableaux/controller/TableauxController.scala index a8b0cadd..02665e96 100644 --- a/src/main/scala/com/campudus/tableaux/controller/TableauxController.scala +++ b/src/main/scala/com/campudus/tableaux/controller/TableauxController.scala @@ -7,6 +7,7 @@ import com.campudus.tableaux.database.{LanguageNeutral, LocationType} import com.campudus.tableaux.database.domain._ import com.campudus.tableaux.database.domain.DisplayInfos.Langtag import com.campudus.tableaux.database.model.{Attachment, TableauxModel} +import com.campudus.tableaux.database.model.DuplicateRowOptions import com.campudus.tableaux.database.model.TableauxModel._ import com.campudus.tableaux.router.auth.permission._ @@ -17,7 +18,6 @@ import scala.concurrent.Future import scala.util.Try import java.util.UUID -import com.campudus.tableaux.database.model.DuplicateRowOptions object TableauxController { @@ -287,7 +287,8 @@ class TableauxController( } yield EmptyObject() } - def duplicateRow(tableId: TableId, rowId: RowId, duplicateOptions: Option[DuplicateRowOptions])(implicit user: TableauxUser): Future[Row] = { + def duplicateRow(tableId: TableId, rowId: RowId, duplicateOptions: Option[DuplicateRowOptions])(implicit + user: TableauxUser): Future[Row] = { checkArguments(greaterZero(tableId), greaterZero(rowId)) logger.info(s"duplicateRow $tableId $rowId") for { diff --git a/src/main/scala/com/campudus/tableaux/router/TableauxRouter.scala b/src/main/scala/com/campudus/tableaux/router/TableauxRouter.scala index 2fbb01f0..eafed9bf 100644 --- a/src/main/scala/com/campudus/tableaux/router/TableauxRouter.scala +++ b/src/main/scala/com/campudus/tableaux/router/TableauxRouter.scala @@ -562,7 +562,7 @@ class TableauxRouter(override val config: TableauxConfig, val controller: Tablea body.filter(_.containsKey("columns")) .map(toColumnSeq) .map(_.get) - val duplicateOptions = DuplicateRowOptions( + val duplicateOptions = DuplicateRowOptions( getBoolParam("skipConstrainedLinks", context).getOrElse(false), getBoolParam("annotateSkipped", context).getOrElse(false), specificColumnsIds