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

#3816 - "Relationships to generate" list empty

Open Bug? created by petrlouzecky Verified Purchase a year ago

After installing the Sugar8 version of the AddOn there is an issue with the Meeting template document. There are no relationships available and therefore we cannot generate documents with attendees.

Could it be caused by an older version of the AddOn which was present in the instance? We had properly uninstalled it before we installed the new one.

  1. synolia member avatar

    synolia Provider Affiliate

    a year ago

    Hello,

    There must be either some leftover files from the last install or some server cache interfering. Can you please check the sugarcrm.log file and the apache/php log files when you select the related module to "Meetings"?

    Can you please send us the relevant logs, if any, so we can better understand the cause of the issue?

    Kind regards,
    Synolia Support

  2. pavelpohorsky member avatar

    petrlouzecky Verified Purchase

    a year ago

    Hello,

    Here is some (hopefully relevant) log:

    Mon Jul 30 21:35:56 2018 [20900][c7f69a74-2dce-95f4-e023-52853d9c32e7][FATAL] /var/www/html/sugarcrm/custom/Synolia/SynoGenerateDoc/entry_points/getLinksForModule.php Unauthorise access

    The other logs don't seem to be relevant as they are related to the old version of the AddOn

    Thank you

  3. pavelpohorsky member avatar

    petrlouzecky Verified Purchase

    a year ago

    Hello again. Here is a screenshot with the error. It seems there is "base_module" item missing in the request.

  4. pavelpohorsky member avatar

    petrlouzecky Verified Purchase

    a year ago

    Hello - I found finally found out why it does not work. First bug - The "Template for module" field was positioned after "Relationships to generate" field in edit view. So when the relationships to generate field was loaded, there wasn't yet set a value for "Template for module" in html.

    Second bug after I fixed this, the template still wasn't loaded correctly - relationships weren't loaded. I found a bug in code on line 152 in file custom/Synolia/SynoGenerateDoc/SynoGenerateDoc.php the value for the function was "$aLink['relationName']" but it really should be $aLink['linkName'], since load_relationship() function accepts link names not relationship names (it was correct in previous version... and was changed in this version o.O ) . When I changed it back, the plugin worked correctly. Please fix this.

    Karel

  5. synolia member avatar

    synolia Provider Affiliate

    a year ago

    Hello,

    Thank you for your help. We will look into this and fix as necessary.

    Kind regards,
    Synolia Support

  6. synolia member avatar

    synolia Provider Affiliate

    a year ago

    Hello,

    A new version of the module is now avalilable. It includes the fix to the issue you have identified and makes the module compatible with Sugar 8.1.

    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.