BIG ISSUE : Sugar 7 account_contracts relationship not found

Hello everybody,

I came accross a big issue in my SugarPro 7.5.1.

We did not see it, but it seems that my standard relationship between Accounts and Contracts modules is broken.

I still can see it in Studio > Accounts > relationships : account_contracts is a 1-M relationship. And it is unable to edit or delete it since it's a standard. And I still can see it through Studio > Contracts > relationships  too.

When i am in a Contract record, i'm able to see the Account related. And i'm able to click on it and see the Account record. (so the link in that way is well done)

BUT, when i'm in an Account record, in the Contracts subpanel, the link between the contract and the current account is not done. I can see the contract (name, date etc...) in the subpanel. But i can't click on its name and have a redirection on its record.

AND i've searched in my database, and i have no database named "account_contracts".

i've run several QRR and several "Repair relationships" and nothing did the job...

Please could you help me at least to fix it ? Like i don't know, just recreate a table named "account_contracts", rebuild and Bam get it fixed ?

Thanks a lot, it's a pain in my project !
Parents
  • It does not look like the accounts_contract table is created by default.  The relationship appears to be stored in the contracts table. 

    I've seen this issue before when the link variable is not set to true.  

    Look to see if you have a file at:

    ./custom/modules/Contracts/clients/base/views/subpanel-for-accounts-contracts/subpanel-for-accounts-contracts.php

    Confirm that the file shows a 'link' => true; variable set.

    You will need to run a Quick Repair & Rebuild within Admin > Repairs if you make any changes.

    Hope this helps.
  • Hi GaelleFernandez,

    Don't worry, nobody has taken your relationship table...:)
    For accounts_contracts relationship we don't have an extra relationship table.If you see contracts table you can see a field account_id.This is same as standard accounts_contacts relationship.

    As  loriarce said you can enable the link parameter for name in the subpanel file.You won't be having the file in the specified path by default.So navigate to Admin>Studio>Accounts>subpanels>contracts
    and do save and deploy, then the file will get generated in the following path automatically.

    ./custom/modules/Contracts/clients/base/views/subpanel-for-accounts-contracts/subpanel-for-accounts-contracts.php 

    Thanks!
Reply
  • Hi GaelleFernandez,

    Don't worry, nobody has taken your relationship table...:)
    For accounts_contracts relationship we don't have an extra relationship table.If you see contracts table you can see a field account_id.This is same as standard accounts_contacts relationship.

    As  loriarce said you can enable the link parameter for name in the subpanel file.You won't be having the file in the specified path by default.So navigate to Admin>Studio>Accounts>subpanels>contracts
    and do save and deploy, then the file will get generated in the following path automatically.

    ./custom/modules/Contracts/clients/base/views/subpanel-for-accounts-contracts/subpanel-for-accounts-contracts.php 

    Thanks!
Children
No Data