Usage of useModuleQuickCreateTemplate variable

Hi,

We are wondering about the overall usage of the variable “useModuleQuickCreateTemplate” that is used inside the view.edit.php of any module.
ex:

class CustomOpportunitiesViewEdit extends OpportunitiesViewEdit
{
    public function __construct()
    {
        parent::__construct();
        $this->useForSubpanel = true;
        $this->useModuleQuickCreateTemplate = true;
    }

    public function display()
    {
        parent::display();
    }
}

Searching the code, this variable enables the view to show the template QuickCreate.tpl allocated in the folder “modules//tpl/QuickCreate.tpl”. Looking to this smarty file and playing with the “useModuleQuickCreateTemplate” boolean we can’t really see what are the changes applied when this variable is activated or when a modification to the tpl is done.

Moreover, when this boolean is activated in the Opportunities module, the display of the Quickcreate template isn’t showing properly:

This also happens if the line “$this->useModuleQuickCreateTemplate = true;” is added in the core file view.edit.php of the Opportunity module. And without any quickcreatedefs.php metadata file in custom.

Before opening an issue in the Github repository regarding this situation of the Opportunity module, we wanted to understand the usage of the code “$this->useModuleQuickCreateTemplate = true;”. Mainly because we couldn’t find any documentation or information related to this.

If someone could clarify.

Thanks in advance

Hi,

I am facing the same issue