by Izertis

Create documents in docx, xlsx (MS Office Word and Excel), odt, ods (LibreOffice and OpenOffice) and pdf format without MS Office or others plugins installed from any module and subpanel using templates.

Includes a 30 day guarantee
Try it Now

By clicking you consent to share your profile with the developer

#2789 - Generate Document duplicated on modules

Closed Bug? created by taufiqueahmed 5 years ago


I have been using Mail Merge for a couple of years now and it is brilliant! We have come across this bug before but this time it refuses to go away with uninstall and reinstall!

Modules I have Mail Merge on:

Accounts√ Meetings X2 Opportunities X2 Knowledge Base X2

Custom modules Registrations√

It is duplicating on some not all

Also when in Mail Merge config in admin it wipes the displayed modules if you do not drag them across from hidden everytime

Using SuiteCRM Version 7.7.9 Sugar Version 6.5.24 (Build 509)

Mail Merge 2.5.5

  1. taufiqueahmed member avatar


    5 years ago

    I have managed to stop the plugin from creating multiple buttons by making the following edit in UI_Hooks.php

    if($("#" + 'generate_document_button').length == 0) { jQuery('div.actionsContainer div.action_buttons div.clear').before(action_code_button); }

    This has not fixed the bug and when pausing on exceptions, the script breaks around the following:

    $("#MassGenerateDocument_button_DetailView").click(function(){ document.MassGenerateDocument.mode.value = 'selected'; document.MassGenerateDocument.enPDF.value = false; document.MassGenerateDocument.submit(); return false; });

    The exceptions: Uncaught TypeError: Cannot set property 'value' of undefined Uncaught TypeError: 'submit' is not a function.

    It will seem that the MassGenerateDocument object is not being populated properly when it is created.

  2. dharma member avatar

    Izertis Provider

    5 years ago


    There is a new MMR version. Could you download it and test if your problem is solved?

    • Important!! Please, remind that you have to uninstall the component previously to update it to a new version, checking the option "Do Not Remove Tables" to preserve data and template files



This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
  • "The single biggest downfall of the community edition of SugarCRM or SuiteCRM is the lack of creating a report form a custom module for a single event...." - ian

    Read More Reviews