# Does anybody solve the object\_options bug?

**URL:** <https://www.dolibarr.org/forum/t/does-anybody-solve-the-object-options-bug/16575>\
**Category:** Using my Dolibarr\
**Created:** [April 11, 2018, 6:50pm UTC](https://www.dolibarr.org/forum/t/does-anybody-solve-the-object-options-bug/16575 "2018-04-11T18:50:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![keicam61](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/k/3ec8ea/32.png) [@keicam61](https://www.dolibarr.org/forum/u/keicam61)\
**Post date:** [April 11, 2018, 6:50pm UTC](https://www.dolibarr.org/forum/t/does-anybody-solve-the-object-options-bug/16575/1 "2018-04-11T18:50:43Z")

</div>

Hello

Anybody on this forum knows a way to get obiect\_options\_xxx working.  
company\_options\_xxx works well  
but when you want to display project extrafiield tag returns {object\_options\_xxx) where xxx is your extrafield code.

---

<div class="post-metadata">

**Author:** ![umigun](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/umigun/32/7276_2.png) [@umigun](https://www.dolibarr.org/forum/u/umigun)\
**Post date:** [August 2, 2024, 10:57am UTC](https://www.dolibarr.org/forum/t/does-anybody-solve-the-object-options-bug/16575/2 "2024-08-02T10:57:08Z")

</div>

> [@Problem with {object\_options\_xxx} in ODT template](https://www.dolibarr.org/forum/t/problem-with-object-options-xxx-in-odt-template/16534/5):
>
> yes, it is certain, were a bug. I’ve organized my own code. yayimlacak a more effective fix I think. anyway, the solution is this: /htdocs/core/class/commondocgenerator.class.php open the file… and “fill\_substitutionarray\_with\_extrafields” search for this function. (892~970 lines) from the beginning to the end /\* … \*/ close. I gave below and add the code below. your problem will be solved. white_check_mark public function fill\_substitutionarray\_with\_extrafields($object, $array\_to\_fi…
