From: bsinou Date: Fri, 10 Mar 2017 09:52:17 +0000 (+0100) Subject: Bug shooting X-Git-Tag: argeo-suite-0.1.5~2 X-Git-Url: https://git.argeo.org/?p=gpl%2Fargeo-suite.git;a=commitdiff_plain;h=b19e319c510e4ef18714741672eb4d63b4f6e93a Bug shooting --- diff --git a/org.argeo.suite.workbench.rap/src/org/argeo/suite/workbench/commands/ImportEntities.java b/org.argeo.suite.workbench.rap/src/org/argeo/suite/workbench/commands/ImportEntities.java index 44bd81e..640e90e 100644 --- a/org.argeo.suite.workbench.rap/src/org/argeo/suite/workbench/commands/ImportEntities.java +++ b/org.argeo.suite.workbench.rap/src/org/argeo/suite/workbench/commands/ImportEntities.java @@ -21,6 +21,7 @@ import javax.jcr.RepositoryException; import javax.jcr.Session; import org.apache.commons.io.IOUtils; +import org.argeo.connect.ConnectConstants; import org.argeo.connect.ConnectNames; import org.argeo.connect.resources.ResourcesNames; import org.argeo.connect.resources.ResourcesService; @@ -465,6 +466,15 @@ public class ImportEntities extends AbstractHandler implements PeopleNames { if (notEmpty(contactsStr)) importOrgEmployees(tmpParent, targetParent, newOrgNode, contactsStr); } + + // Refresh tags and mailing list + Node tagParent = resourcesService.getTagLikeResourceParent(session, ConnectConstants.RESOURCE_TAG); + resourcesService.refreshKnownTags(tagParent); + + // Create Mailing lists + Node mlParent = resourcesService.getTagLikeResourceParent(session, PeopleTypes.PEOPLE_MAILING_LIST); + resourcesService.refreshKnownTags(mlParent); + } catch (PeopleException | RepositoryException e) { throw new SuiteException("Cannot import mapping file, error at line: " + (i + 1), e); } finally { diff --git a/org.argeo.suite.workbench.rap/src/org/argeo/suite/workbench/rap/AsSecureEntryPoint.java b/org.argeo.suite.workbench.rap/src/org/argeo/suite/workbench/rap/AsSecureEntryPoint.java index 22b355c..9a350dd 100644 --- a/org.argeo.suite.workbench.rap/src/org/argeo/suite/workbench/rap/AsSecureEntryPoint.java +++ b/org.argeo.suite.workbench.rap/src/org/argeo/suite/workbench/rap/AsSecureEntryPoint.java @@ -39,7 +39,7 @@ public class AsSecureEntryPoint extends RapWorkbenchLogin { // Images are declared via the resources extension point in plugin.xml String headerStr = " " - + " " + ""; + + " " + ""; headerLbl.setText(headerStr); GridData gd = new GridData(SWT.LEFT, SWT.CENTER, true, false); headerLbl.setLayoutData(gd);