Resolve inability to edit app related data

fix/subscription_table
Ashvini Wegodapola 7 months ago
parent 5da2ae1f74
commit 10d70ddd82

@ -2619,8 +2619,11 @@ public class ApplicationManagerImpl implements ApplicationManager {
int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId(true);
String userName = PrivilegedCarbonContext.getThreadLocalCarbonContext().getUsername();
ApplicationDTO applicationDTO = getApplication(applicationId);
String sanitizedName = ApplicationManagementUtil.sanitizeName(applicationUpdateWrapper.getName(),
String sanitizedName = "";
if (!StringUtils.isEmpty(applicationUpdateWrapper.getName())) {
sanitizedName = ApplicationManagementUtil.sanitizeName(applicationUpdateWrapper.getName(),
Constants.ApplicationProperties.NAME );
}
try {
ConnectionManagerUtil.beginDBTransaction();
if (!StringUtils.isEmpty(sanitizedName) && !applicationDTO.getName()

Loading…
Cancel
Save