#2789 - Generate Document duplicated on modules
Hello
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
7 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.
7 years ago
Hello,
There is a new MMR version. Could you download it and test if your problem is solved?
Regards,
Anabel