stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anuruddhal <...@git.apache.org>
Subject [GitHub] stratos pull request: Making signup button available only when app...
Date Tue, 15 Sep 2015 06:49:27 GMT
Github user anuruddhal commented on a diff in the pull request:

    https://github.com/apache/stratos/pull/464#discussion_r39479093
  
    --- Diff: components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/converter/ObjectConverter.java
---
    @@ -1147,15 +1151,18 @@ public static ApplicationBean convertStubApplicationContextToApplicationDefiniti
             if (applicationContext == null) {
                 return null;
             }
    -
    +        Application application = ApplicationManager.getApplications().getApplication(applicationContext.getApplicationId());
             ApplicationBean applicationDefinition = new ApplicationBean();
             applicationDefinition.setApplicationId(applicationContext.getApplicationId());
             applicationDefinition.setAlias(applicationContext.getAlias());
             applicationDefinition.setMultiTenant(applicationContext.getMultiTenant());
             applicationDefinition.setName(applicationContext.getName());
             applicationDefinition.setDescription(applicationContext.getDescription());
    -        applicationDefinition.setStatus(applicationContext.getStatus());
    -
    +        if (application.getStatus().name().equals(APPLICATION_STATUS_ACTIVE)) {
    --- End diff --
    
    Fixed with commit 3d44e8de5e74669c6344e5b24d0589badd838840


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message