Skip to content

Commit eb8ee5e

Browse files
author
Cedric Thiebault
committed
Fix OPAL-1753: Unit cannot be selected when importing data in other format than CSV
(cherry picked from commit 4a8d4ae)
1 parent 967ba9c commit eb8ee5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/app/client/wizard/importdata/presenter/UnitSelectionStepPresenter.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.obiba.opal.web.gwt.rest.client.ResourceRequestBuilderFactory;
1515
import org.obiba.opal.web.model.client.opal.FunctionalUnitDto;
1616

17+
import com.google.common.base.Strings;
1718
import com.google.gwt.core.client.JsArray;
1819
import com.google.gwt.event.dom.client.ClickEvent;
1920
import com.google.gwt.event.dom.client.ClickHandler;
@@ -64,7 +65,7 @@ public void onResource(Response response, JsArray<FunctionalUnitDto> units) {
6465
}
6566

6667
public void setEntityType(String entityType) {
67-
getView().setUnitRadiosEnabled("Participant".equalsIgnoreCase(entityType));
68+
getView().setUnitRadiosEnabled(Strings.isNullOrEmpty(entityType) || "Participant".equalsIgnoreCase(entityType));
6869
}
6970

7071
public void updateImportConfig(ImportConfig importConfig) {

0 commit comments

Comments
 (0)