(no commit message)
authorKatja Luther <k.luther@bgbm.org>
Thu, 19 Mar 2015 13:21:57 +0000 (13:21 +0000)
committerKatja Luther <k.luther@bgbm.org>
Thu, 19 Mar 2015 13:21:57 +0000 (13:21 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/agent/TeamMemberSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/selection/EntitySelectionElement.java

index 5cc7743d878c0fefde03b0edff0217f862edf124..30c64bdaa2bfc9657628f4d51cee3c43d0d264d8 100644 (file)
@@ -73,7 +73,7 @@ public class TeamMemberSection extends AbstractEntityCollectionSection<Team, Per
        /** {@inheritDoc} */
        @Override
        protected String getTooltipString() {
-               return "Add a membmer to this team";
+               return "Add a member to this team";
        }
 
        /** {@inheritDoc} */
index 0283c721d418df04c8b08337c05b79d4190ff013..88e9bb723bf99e2b093478774a4c4a2ffb9409f0 100644 (file)
@@ -465,7 +465,7 @@ public class EntitySelectionElement<T extends ICdmBase> extends
                            service = (IService<T>) CdmStore.getService(IAmplificationService.class);
                        }
                        //check if original already exists in data base. If not then do not clone and all changes will be persisted directly -> Warning to user.
-                if(service !=null && service.find(originalEntity.getUuid())==null){
+                if(service !=null && service.find(originalEntity.getUuid())==null && originalEntity.getId() != 0){
                     if(MessagingUtils.confirmDialog(TRANSIENT_EDITING_WARNING_TITLE, "["+originalEntity.getClass().getSimpleName()+"]"+originalEntity + " has to be saved before it can be edited. Save now?")){
                         service.save(originalEntity);
                         AbstractUtility.getActiveEditor().doSave(new NullProgressMonitor());
@@ -508,6 +508,7 @@ public class EntitySelectionElement<T extends ICdmBase> extends
                        }
                        //be sure to reset to original in all cases
                        selectionElement.setEntity(originalEntity);
+                       selectionElement.refresh();
                }
        }