Why is record.php not being used when I install this package?

Here is the package.  Feel free to unzip it and take a look.

Lev_Contracts2013_09_20_Amy.zip

I am frustrated, because I have a file \SugarModules\modules\Lev_Contracts\clients\base\views\record\record.php

but after installing, it doesn't show up like that in record view or studio.

  • Hi ,

    I just took a quick look at your package, and looks like all of your views (list.php, record.php, etc, ) are having an old/test/incorrect module name: amy_test_module. Please search and replace that with the correct module name(Lev_Contracts) in all your files. 

    
    <?php
    $module_name = 'amy_test_module';
    $viewdefs[$module_name] = 
    array (
      'base' => 
    


    You can use find+sed if you're in Mac/Linux, something like:

    
    find ./ -type f -exec sed -i -e 's/amy_test_module/Lev_Contracts/g' {} \;
    
  • Hi

    If you already did a Quick Rebuild and Repair and you still can't see your view of the record (record.php) ...
    You can try, in the installdefs section, leave only the copy command and the language command.
    It could also be that this path:
    'to' => 'modules / Lev_Contracts', (here maybe you are pointing to the modules folder of the SugarCRM core, there you should not edit or modify any file) is not correct, in that section the path must be:' to '=>' <sugar_path> / custom / modules / Lev_Contracts'.
    All your modifications and / or customizations must be inside the custom folder.
    Regards.