Merge pull request #14681 from bafbes/abb120139

FIX replace values of __YEAR__, __MONTH__ and __DAY__ in member docs
This commit is contained in:
Laurent Destailleur 2020-09-09 14:47:08 +02:00 committed by GitHub
commit e418046ce5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,6 +251,11 @@ class pdf_standard extends CommonStickerGenerator
{
if ($object->country == '-') $object->country = '';
$now = dol_now();
$year = dol_print_date($now, '%Y');
$month = dol_print_date($now, '%m');
$day = dol_print_date($now, '%d');
// List of values to scan for a replacement
$substitutionarray = array(
'__ID__' => $object->id,