Hello.
I'm using SugarCRM 7.8 Enterprise Edition.
I have a package for the module 'Opportunities', which I need to update some javascript / sidecar code to make the CRM updatable to version 7.9, according to what Sugar said in a Internal Case I opened (Healthcheck Failure).
The code change in question is this:
There is a single line of code that makes a difference between the package working or not.
- This javascript line (deprecated method) works, but due to version update, I won't be able to use this anymore:
app.view.invokeParent(this, {type: 'view', name: 'record', method: 'initialize', args:[options]});
- But why these lines (adapted for Sugar 7.9) doesn't work?
Method A:
this._super('initialize', [options]);
Method B:
this._super('initialize', {type: 'view', name: 'record', method: 'initialize', args: [options]});
I get these two errors:
- Cannot read property 'components' of undefined
- Cannot read property 'meta' of undefined
What could be the problem?
Any help would be appreciated.
Thanks.
Regards,
Ramon Marcondes