# Custom Module Related Objects

**URL:** <https://www.dolibarr.org/forum/t/custom-module-related-objects/23893>\
**Category:** Other native modules\
**Created:** [June 20, 2023, 12:55pm UTC](https://www.dolibarr.org/forum/t/custom-module-related-objects/23893 "2023-06-20T12:55:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![playcock](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/playcock/32/6009_2.png) [@playcock](https://www.dolibarr.org/forum/u/playcock)\
**Post date:** [June 20, 2023, 12:55pm UTC](https://www.dolibarr.org/forum/t/custom-module-related-objects/23893/1 "2023-06-20T12:55:19Z")

</div>

V 16.0.5  
Does anyone have an idea why this would happen?

I ran into an issue when I tried to Link a Custom Module’s card to a Customer’s Proposal.

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/8/88a46a045bcc6a09cfb7d001ca91286a6e875a13.png)

I’ll select one and click the LINK button.

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/5/505185b731a4e4381358935ffef9a744baec6ed6.png)

The page reloads and the Proposal is not linked.

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/d/de1e8213ab341aaaebf6da16edf85bedbbb4b7b2.png)

I also created a Sales Order for the third party and tried to link to the Sales Order and it doesn’t link.

I have also visited the Proposal and Sales Order cards I tried linking to and don’t see anything there either.

---

<div class="post-metadata">

**Author:** ![playcock](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/playcock/32/6009_2.png) [@playcock](https://www.dolibarr.org/forum/u/playcock)\
**Post date:** [June 29, 2023, 7:49pm UTC](https://www.dolibarr.org/forum/t/custom-module-related-objects/23893/2 "2023-06-29T19:49:24Z")

</div>

I reported this on the Dolibarr GitHub.

> <https://github.com/Dolibarr/dolibarr/issues/25236>
>
> \### Bug
> 
> I believe I have discovered a bug within the Custom Modules you can cre…ate with the Module Builder.
> 
> When I select a Related Object to Link the Custom Module card to, the card does not save the selection I made.
> 
> \### Environment Version
> 
> 16.0.5
> 
> \### Environment OS
> 
> ubuntu0.18.04.17
> 
> \### Environment Web server
> 
> \_No response\_
> 
> \### Environment PHP
> 
> 7.2.24
> 
> \### Environment Database
> 
> 10.1.48-MariaDB
> 
> \### Environment URL(s)
> 
> \_No response\_
> 
> \### Expected and actual behavior
> 
> \_No response\_
> 
> \### Steps to reproduce the behavior
> 
> Scroll down to Related Objects and click "Link to"
> !\[image\](https://github.com/Dolibarr/dolibarr/assets/9416592/5fd8dda1-7c86-4628-b70f-9637ce2d70f9)
> 
> Select one and click the LINK button
> !\[image\](https://github.com/Dolibarr/dolibarr/assets/9416592/0fc33201-fec5-4e51-9f9c-f6f27f9a452f)
> 
> The page reloads and the object is not linked
> !\[image\](https://github.com/Dolibarr/dolibarr/assets/9416592/767dc6c4-15ba-4c38-b5b8-6d8ded2196ba)
> 
> I also created a Sales Order for the third party and tried to link to the Sales Order and it doesn’t link.
> 
> \### Attached files
> 
> \_No response\_
