#3816 - "Relationships to generate" list empty
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.
3 years 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
3 years 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 years ago
Hello again. Here is a screenshot with the error. It seems there is "base_module" item missing in the request.
3 years 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
3 years ago
Hello,
Thank you for your help. We will look into this and fix as necessary.
Kind regards, Synolia Support
3 years 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