AnsweredAssumed Answered

Sugar 7.5 How to delete M-M default relationship?

Question asked by Gaelle Fernandez on Jun 23, 2015
Latest reply on Jun 25, 2015 by Gaelle Fernandez
Hello there !

I have a little problem with relationships...

What i have :
By default, the relationship between Contracts module and Contacts module is Many to Many.

I've created a Contacts 1-M Contracts relationship, because it suits better my customer's needs.

So, it resulted in 2 Contracts' subpanels on my Contact record view.

What i want :
My customer does not need a M-M relationship. And i would like to hide the wrong subpanel.

What i did : 
So i've wrote this code into
custom/Extension/modules/Contacts/Ext/Layoutdefs/custom.php
<?php
unset($layout_defs['Contacts']['subpanel_setup']['Contracts']);
?> 
And ran a QRR. But it did absolutely nothing.

So ...
I'm asking yo : because my customer does not need this default relationship, How could i delete it safely ?

Configuration : Sugar Pro 7.5.2

Outcomes