Changes in detailviewdefs.php have no effect

Hi all,

I’ve developed some changes in an instance of suitecrm and would now like to apply them to another instance(both 8.5.1). These changes are buttons in the record action dropdowns and an entrypoint.

Everythings works well on the test instance, but when I add the changes in the other instance, I can see no effect, e.g. when adding the buttons to custom/modules/AOS_Quotes/metadata/detailviewdefs.php.

I also see no errors, even in dev mode.

Somehow, the code in this file seems to be ignored in this instance. How can this be?

Thanks,
Chris

Did you remember to do a Quick Repair and Rebuild?

Are those modules defined as legacy in the target system? Check that your module_routing.yaml files match in both systems

You can find a file for legacy.module_routing at the below location.

config/services/module/module_routing.yaml

You can change the module to legacy by setting it to false.


   contacts:
      index: true // true means suite 8 view
      list: true
      record: false // false means classic view

github.com

salesagility/SuiteCRM-Core/blob/hotfix/config/services/module/module_routing.yaml

parameters:
  legacy.module_routing:
    home:
      index: false
      list: false
      record: false
    saved-search:
      index: true
      list: true
      record: false
    calls-reschedule:
      index: true
      list: true
      record: false
    calls:
      index: true
      list: true
      record: false
    tasks:
      index: true

This file has been truncated. show original

You have to run a symfony cache clear from your instance root folder.

.bin/console cache:clear