AnsweredAssumed Answered

7.2.2 Breaks my custom code

Question asked by Mike Solomon on Aug 11, 2014
Latest reply on Aug 11, 2014 by Mike Solomon
Having installed a clean version of 7.2.2 I then loaded a package that was working in 7.2.1

The record.js file now doesnt work and stops the record displaying

This happened when I went from 7.2 to 7.2.1

Has sugar changed the sytax yet again?

my record.js file is

({
    extendsFrom: 'zz_vat_codesRecordView',
    initialize: function (options) {
        this._super('initialize', [options]);
    },
//-------------------------------------------------------------------------------------------------------------------------
    deleteClicked: function () {
        //check for related records on delete
         var AcctID = this.model.get('id');
       
         var rels = {
           'zz_exp_analysis' : 'zz_vat_codes_id_c',
            'zz_expenses_miles' : 'zz_vat_codes_id',
            'zz_expenses_detail' : 'zz_vat_codes_id',
            'zz_pop_detail' : 'zz_vat_codes_id'
         };
        var self = this;
        DelCheckLnk(rels,self,app);
        
        return;
    },
//-------------------------------------------------------------------------------------------------------------------------
})

Outcomes