From bcbc5ccf65145a039e162e7111c9b69ed268dc66 Mon Sep 17 00:00:00 2001 From: matthew-a-dunlap Date: Mon, 16 Oct 2017 17:56:15 -0400 Subject: [PATCH] New dataverse should use the default theme on create screen #4189 --- src/main/java/edu/harvard/iq/dataverse/Dataverse.java | 3 ++- .../dataverse/engine/command/impl/CreateDataverseCommand.java | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/edu/harvard/iq/dataverse/Dataverse.java b/src/main/java/edu/harvard/iq/dataverse/Dataverse.java index af009ec2063..df656bb61b1 100644 --- a/src/main/java/edu/harvard/iq/dataverse/Dataverse.java +++ b/src/main/java/edu/harvard/iq/dataverse/Dataverse.java @@ -162,7 +162,8 @@ public void setDefaultContributorRole(DataverseRole defaultContributorRole) { private boolean metadataBlockRoot; private boolean facetRoot; - private boolean themeRoot; + // By default, themeRoot should be true, as new dataverses should start with the default theme + private boolean themeRoot = true; private boolean templateRoot; diff --git a/src/main/java/edu/harvard/iq/dataverse/engine/command/impl/CreateDataverseCommand.java b/src/main/java/edu/harvard/iq/dataverse/engine/command/impl/CreateDataverseCommand.java index c64995a6958..b78c2f316d2 100644 --- a/src/main/java/edu/harvard/iq/dataverse/engine/command/impl/CreateDataverseCommand.java +++ b/src/main/java/edu/harvard/iq/dataverse/engine/command/impl/CreateDataverseCommand.java @@ -78,8 +78,6 @@ public Dataverse execute(CommandContext ctxt) throws CommandException { created.setDefaultContributorRole(ctxt.roles().findBuiltinRoleByAlias(DataverseRole.EDITOR)); } - // By default, themeRoot should be true - created.setThemeRoot(true); // @todo for now we are saying all dataverses are permission root created.setPermissionRoot(true);