Skip to content
This repository was archived by the owner on Jan 15, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,7 @@ public void activateApplication(Space space, String appId) throws SpaceException
SpaceApplicationHandler appHandler = getSpaceApplicationHandler(space);
// Default is removable, or must be added by configuration or support setting for applications.
setApp(space, appId, appName, true, Space.ACTIVE_STATUS);
saveSpace(space, false);
appHandler.activateApplication(space, appId, appName);
// Use portletId instead of appId for fixing SOC-1633.
spaceLifeCycle.activateApplication(space, getPortletId(appId));
Expand All @@ -806,6 +807,7 @@ public void deactivateApplication(Space space, String appId) throws SpaceExcepti
SpaceApplicationHandler appHandler = getSpaceApplicationHandler(space);
appHandler.deactiveApplication(space, appId);
setApp(space, appId, appId, SpaceUtils.isRemovableApp(space, appId), Space.DEACTIVE_STATUS);
saveSpace(space, false);
spaceLifeCycle.deactivateApplication(space, getPortletId(appId));
}

Expand Down Expand Up @@ -1091,7 +1093,6 @@ public void setApp(Space space, String appId, String appName, boolean isRemovabl
apps += "," + applicationStatus;
}
space.setApp(apps);
//saveSpace(space, false);
}

/**
Expand Down