Lead conversion: Opportunity name missing

I'm currently working on lead conversion. For some reason on a specific instance I have an issue after adding opportunities into the conversion modules. In the convert-results view I can see the Account, Contact and opportuntiy module. For some unclear reason the opportunity is missing the name / link of the opportunity? When I hit the preview button the preview is loaded correclty. 

I did some debugging and noticed that before rendering the html the associatedmodules collection does contain all the modules but the name attribute of Opportunities is 'null'. Anyone know what would cause this behaviour?

Parents
  • What version are you on?

    We had this problem after the version 8 upgrade, and reported it as a bug, but it was addressed and corrected in v 8.2

    See Bug #80864

     

  • Version 11.0. Thanks for pointing me to the bug portal. I've asked sugar for a fix. For the time being I've 'fixed' it myself with the following piece of code until support comes back with a hotfix.

    // www/custom/clients/base/views/convert-results/convert-results.js
    ({
        extendsFrom: 'ConvertResultsView',
        initialize: function (options) {
            this._super('initialize', [options]);
        },
    
        _renderHtml: function(options){
    
            if(this.associatedModels.length > 0){
                _.forEach(this.associatedModels.models,(m)=>{
                   if(_.isEqual(m.module,'Opportunities') && _.isEmpty(m.get('name'))){
                        m.set('name',this.model.get('opportunity_name'));
                   }
                });
            }
            this._super('_renderHtml',[options]);
        }
    })
    

Reply
  • Version 11.0. Thanks for pointing me to the bug portal. I've asked sugar for a fix. For the time being I've 'fixed' it myself with the following piece of code until support comes back with a hotfix.

    // www/custom/clients/base/views/convert-results/convert-results.js
    ({
        extendsFrom: 'ConvertResultsView',
        initialize: function (options) {
            this._super('initialize', [options]);
        },
    
        _renderHtml: function(options){
    
            if(this.associatedModels.length > 0){
                _.forEach(this.associatedModels.models,(m)=>{
                   if(_.isEqual(m.module,'Opportunities') && _.isEmpty(m.get('name'))){
                        m.set('name',this.model.get('opportunity_name'));
                   }
                });
            }
            this._super('_renderHtml',[options]);
        }
    })
    

Children
No Data