Section list is not loaded after I have edited filters in the advanced mode
Symptoms
Reproducing the case:
- open the section (e.g., [Contacts]);
- select the [Show folders] action in the [Filters/folders] menu;
- select a dynamic folder in the folder tree;
- in the folder setup menu, select the [Set up filter] action;
- close the advanced filtering module by clicking the cross icon;
- select any record from the section list and start editing it by clicking the [Open] button;
- click the [New contact] button;
- click [Cancel].
As a result, instead of the [Contacts] section we only see the section caption, the following message is displayed in the console:
1) message: Uncaught TypeError: Cannot read property 'modules' of undefined
2) user: Supervisor/7f3b869f-34f3-4f20-ab4d-7480a5fdf647
file: undefined
line: undefined
message: Cannot read property 'components' of undefined
date: Mon Nov 16 2015 12:35:00 GMT+0200 (FLE Standard Time)
moduleId: SectionModuleV2_ContactSectionV2_ExtendedFilterEditModule
moduleName: SectionModuleV2
3) message: Uncaught Terrasoft.UnsupportedTypeException: Message GetSectionFiltersInfo is not defined in undefined module
Cause
The case is reproduced in versions higher han 7.6.0.1500. It is connected with changing the logic of advanced filtering module operation (ExtendedFilterEditModuleV2): it has been inherited from the base schema. It is anyway saved in the browser history and nuder certain circumstances is loaded instead of the expected section module.
Solution
To fix the issue locally on the customer side by replacing the base module, replace the ExtendedFilterEditModuleV2 module having completely copied the code and styles and add the following property before declaring the module methods:
/** * Indicates that the history is used when loading the module. * @public * @type {Boolean} */ useHistoryState: false,
please explain how to replace this kind of module (ExtendedFilterEditModuleV2)
Hello,
You can do it using the Ext.define() method described in the article by the link below:
https://academy.creatio.com/docs/developer/front_end_development/module…
Best regards,
Bogdan