Extending detail view of custom module, breakes popup menus

Intro :

  1. I created some custom modules based on general modules such as basic, issue and etc

  2. Connected these modules by connections and edit subpanel fields to show

1 -2 worked by standart module constructor

Everythink works good, when I open module A in detail view I watching connected subpanels and objects lists. Everythink works when I collaps it.

The problem begins if I add a custom view, via adding a new class.

Here docs

https://docs.suitecrm.com/developer/views/

  1. I make class that extends ViewDetail from MVC ( CustomERT_mymoduleViewDetail extends ViewDetail )

  2. In constructor I called parent::_construct

  3. In display function I called parent::display()

Detail view of my module works perfect, loads all it`s data fields, but subpanels miss. They shows but when colapsed show no data and no fields names.

I think problem is that I try to extend not my module class, maybe/

all you need to include and extend your modules ViewDetail Class , only then you should be get all parent constructor and views rendered correctly. Then you can customize everything after calling parent::function on the fly.

1 Like

I done this. I think the problem not in class. I found js conflict and seems have decided it. After some time I will write about solution.

The problem was in JS conflicts. Thank you for reply!

sergeyyy,
Can you post the solution please.
We just upgraded to 7.11.10 and all the related fields are no longer working.

Thanks