Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Substitution KEY __DATE_DELIVERY__ return null #29624

Open
picarcyr opened this issue May 6, 2024 · 0 comments
Open

Substitution KEY __DATE_DELIVERY__ return null #29624

picarcyr opened this issue May 6, 2024 · 0 comments
Labels
Bug This is a bug (something does not work as expected)

Comments

@picarcyr
Copy link

picarcyr commented May 6, 2024

Bug

Hello,
you need to change the line 8265 in htdocs/core/lib/functions.lib.php

Change

$substitutionarray['DATE_DELIVERY'] = (isset($object->date_delivery) ? dol_print_date($object->date_delivery, 'day', 0, $outputlangs) : '');

To

$substitutionarray['DATE_DELIVERY'] = (isset($object->delivery_date) ? dol_print_date($object->date_delivery, 'day', 0, $outputlangs) : '');

And all the times date_delivery is used in PROPAL,.

Thanks.

Dolibarr Version

19.0.1

Environment PHP

All

Environment Database

Mysql

Steps to reproduce the behavior and expected behavior

Try to used the KEY DATE_DELIVERY in email templates.
It return all the time nothing.

Attached files

No response

@picarcyr picarcyr added the Bug This is a bug (something does not work as expected) label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

1 participant