Juan Carlos Picado Herrera avatar Juan Carlos Picado Herrera committed 6ab61d1

Default social account always as null fixed

Comments (0)

Files changed (4)

enme-core/src/main/java/org/encuestame/core/service/SecurityService.java

         if ("default".equals(action)) {
            social.setDefaultSelected(!social.getDefaultSelected());
            getAccountDao().saveOrUpdate(social);
-        } else if("remove".equals(action)){
+        } else if("remove".equals(action)) {
             getAccountDao().delete(social);
         } else {
             throw new IllegalSocialActionException();

enme-core/src/main/java/org/encuestame/core/util/ConvertDomainBean.java

                 .getDescriptionProfile());
         socialAccount.setEmail(socialAccount.getEmail() == null ? ""
                 : socialAccount.getEmail());
-        socialAccount
-                .setDefaultSelected(socialAccount.getDefaultSelected() == null ? false
+        socialAccountBean.setDefaultSelected(socialAccount.getDefaultSelected() == null ? false
                         : socialAccount.getDefaultSelected());
         socialAccountBean.setAddedAccount(socialAccount.getAddedAccount());
         socialAccountBean.setPrictureUrl(socialAccount.getPrictureUrl());

enme-js/resources-enme-war/src/main/resources/resource/js/me/core/enme.js

 
       /**
        * Convert huge number to relative quantities
-       * @method
+       * @method a number to evaluate
        */
       relativeQuantity : function (quantity) {
          if (typeof quantity === 'number') {

enme-js/resources-enme-war/src/main/resources/resource/js/me/web/widget/social/SocialAccountRow.js

        * Post create cycle lufe.
        */
       postCreate : function() {
-        //console.debug("account", this.account);
+        console.debug("account", this.account);
         if (this._removeButton) {
             if (this.account.tweetpoll_stats > 0 || this.account.poll_stats > 0 || this.account.survey_stats > 0) {
                 //console.debug("remove this button ", this._removeButton);
       _changeStatusAccount : function(event){
           dojo.stopEvent(event);
           var load = dojo.hitch(this, function(data){
-              //console.debug("data", data);
+              console.debug("data", data);
               dojo.publish("/encuestame/social/list/reload");
           });
           var error = function(error) {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.