minor fix

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@130670 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-07-21 20:39:46 +00:00
parent 7e21e3407b
commit 4431c2c729
1 changed files with 9 additions and 7 deletions

View File

@ -595,7 +595,6 @@ public class CreateDatasetForm extends Composite{
String errorMsg = validateDataOnContinue();
if(errorMsg == null){
// check what to do
if(isWorkspaceRequest){
if(!addResourcesCheckBox.getValue()){
@ -609,22 +608,25 @@ public class CreateDatasetForm extends Composite{
if(workspaceResourcesContainer.getWidget() == null)
workspaceResourcesContainer.add(resourcesTable);
selectedProfile.setText("Selected Profile is " + metadataProfilesFormatListbox.getSelectedItemText());
}else{
// resources will be added automatically and we can show the page of the profiles
formFirstStep.setVisible(false);
formThirdStep.setVisible(true);
selectedProfile.setText("Selected Profile is " + metadataProfilesFormatListbox.getSelectedItemText());
}
}else{
// this is not a workspace request
formFirstStep.setVisible(false);
formThirdStep.setVisible(true);
selectedProfile.setText("Selected Profile is " + metadataProfilesFormatListbox.getSelectedItemText());
}
if(metadataProfilesFormatListbox.getSelectedItemText().equals("none"))
selectedProfile.setText("");
else
selectedProfile.setText("Selected Profile is " + metadataProfilesFormatListbox.getSelectedItemText());
}else{
alertOnContinue("Please check inserted data [" + errorMsg + "]", AlertType.ERROR);
}