-
Notifications
You must be signed in to change notification settings - Fork 533
restored suppressing host dataverse field #11865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
e043bf1
32dd076
84149b3
db03fff
d641b71
34cf465
44e8647
2e841e7
40351f5
1687097
7376590
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -105,6 +105,8 @@ | |
| import jakarta.persistence.OptimisticLockException; | ||
|
|
||
| import org.apache.commons.lang3.StringUtils; | ||
| import org.joda.time.DateTime; | ||
| import org.joda.time.Duration; | ||
| import org.primefaces.event.FileUploadEvent; | ||
| import org.primefaces.model.file.UploadedFile; | ||
|
|
||
|
|
@@ -332,6 +334,7 @@ public enum DisplayMode { | |
| private List<SelectItem> linkingDVSelectItems; | ||
| private Dataverse linkingDataverse; | ||
| private Dataverse selectedHostDataverse; | ||
| private boolean hasDataversesToChoose; | ||
|
|
||
| public Dataverse getSelectedHostDataverse() { | ||
| return selectedHostDataverse; | ||
|
|
@@ -1781,6 +1784,11 @@ public void setDataverseTemplates(List<Template> dataverseTemplates) { | |
| this.dataverseTemplates = dataverseTemplates; | ||
| } | ||
|
|
||
| public boolean isHasDataversesToChoose() { | ||
| this.hasDataversesToChoose = dataverseService.getDataverseCount() > 1; | ||
|
||
| return this.hasDataversesToChoose; | ||
| } | ||
|
|
||
| public Template getDefaultTemplate() { | ||
| return defaultTemplate; | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These aren't used any more.