diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/grid/AbstractBrowserGrid.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/grid/AbstractBrowserGrid.java index 6805b2c57990ea6eebd70545cab9e681abacd013..559ffc9b66a8598cbf7a8b3111641b945a2374d1 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/grid/AbstractBrowserGrid.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/grid/AbstractBrowserGrid.java @@ -134,6 +134,7 @@ import ch.systemsx.cisd.openbis.generic.shared.basic.dto.IEntityPropertiesHolder import ch.systemsx.cisd.openbis.generic.shared.basic.dto.IEntityProperty; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.SortInfo; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.SortInfo.SortDir; +import ch.systemsx.cisd.openbis.generic.shared.basic.dto.VocabularyTerm; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.WebClientConfiguration; /** @@ -1834,6 +1835,11 @@ public abstract class AbstractBrowserGrid<T/* Entity */, M extends BaseEntityMod } else { showModificationsBar(); + if (value instanceof VocabularyTerm) + { + VocabularyTerm term = (VocabularyTerm) value; + value = term.getCode(); + } tableModificationsManager.handleEditingEvent(model, columnID, StringUtils.toStringOrNull(value)); } @@ -1850,14 +1856,13 @@ public abstract class AbstractBrowserGrid<T/* Entity */, M extends BaseEntityMod { return false; } - + /** * Shows a message that the table cell of specified column and row (model) isn't editable. */ protected void showNonEditableTableCellMessage(M model, String columnID) { - MessageBox.info("Not Editable", - "Sorry, this table cell isn't editable", null); + MessageBox.info("Not Editable", "Sorry, this table cell isn't editable", null); } /**