AnsweredAssumed Answered

Extends metadata viewdef

Question asked by Paulo Nascimento on Jul 28, 2014
Hi folks,

I created a custom javascript code on /custom/modules/Opportunities/metadata/editviewdefs.php on SugarCRM CE 6.5.16. This code handles with two different dropdowns.
The problem is every time that I rebuild/repair the module, my custom code goes on. Another side-effect is that the custom javascript code doesn't allow me to edit my "edit layout" on Studio. To do this I need to temporarily clear my custom code, save the new layout and get back with the custom javascript.
To solve this and to allow me to use some version control like Git I'm looking for a way to extend the editviewdefs.php. With this extension I could write my custom code on the new file that will be read just after the editviewdefs.php.
Is there any way to do this?

PS: I know that I could create a include statement on editviewdefs.php for my extended PHP file. But I'm looking for a way to do this without modify the editviedefs.php file by my hands.

Tks
Paulo 

Outcomes