From 3cfd05d7482af7b2a28ffd475ebeaed5caea9e4a Mon Sep 17 00:00:00 2001 From: felmer <felmer> Date: Mon, 5 Sep 2011 08:34:04 +0000 Subject: [PATCH] LMS-2487 fixed SVN: 22780 --- .../application/ui/grid/AbstractBrowserGrid.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 6805b2c5799..559ffc9b66a 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); } /** -- GitLab