by synolia

Create personalized MS Office or Open Office letters and documents from any Sugar module with one click. Define and create templates for any module and generate Office documents on any record and its related records. Great for mail merges and more!

Includes a 30 day guarantee
Try it Now

#2881 - Generate Doc and Email Doc buttons missing

Closed Bug? created by marcel.horak 2 years ago

Hello. We commented this logic hook in custom/Extension/application/Ext/LogicHooks/SUGAR_SYNOGENERATEDOC.AfterUiFrame.setModuleButton.php:
$hook_array['after_ui_frame'][] = array(
    99,
    'Add SynoGerateDoc Button on Detail View',
    'custom/Synolia/SynoGenerateDoc/SynoGenerateDocUtils.php',
    'SynoGenerateDocUtils',
    'setModuleButton',
);
Because it is no longer supported in 7.8.0.0 and prevented us from upgrading from 7.7.x (red flag)
We also commented: echo $buttonCode;
in custom/Synolia/SynoGenerateDoc/SynoGenerateDocUtils.php (red flag)
Now we uncommented those lines back but cannot see Generate Doc and Email Doc buttons.
Could you provide us with possible solution?
Regards

  1. synolia member avatar

    synolia Provider Affiliate

    2 years ago

    Hello,

    This code is still used in the case of deploying the GenerateDoc buttons on bwc modules. We recommend to uninstall the module before upgrading and reinstall it afterwards. You will have to adjust your document records but it should not be an important charge. The more technical approach is the one you took and comment the lines and/or files that block the upgrade. Both solutions are viable depending on your infrastructure and access to the source code when upgrading.
    The code you specified is designed for the bwc modules and should not affect the sidecar modules.

    When you say "Now we uncommented those lines back but cannot see Generate Doc and Email Doc buttons." what are the modules where you don't see the buttons anymore?

    In any case if you have issues after upgrading, please uninstall and then reinstall the module. This should fix your issue.

    Kind regards,
    Synolia Support

  2. marcel.horak member avatar

    marcel.horak

    2 years ago

    Hello,

    The problem was that after upgrade, we were looking for the buttons in the module where they are not supposed to be. Thank you very much.

    Best regards,
    Marcel HorĂ¡k

    • synolia member avatar

      synolia Provider Affiliate

      2 years ago

      Hello,

      Glad be be of assistance. If you encounter any other issues don't hesitate to contact us.

      Kind regards,
      Synolia Support

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...

Keep up to date on the latest additions

We'll send you an email every month with handpicked add-ons, reviews, tricks and tips. Don't worry, we hate spam as much as you do.