Skip to content

Commit

Permalink
Add missing tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienClairembault authored and cedric-anne committed Sep 2, 2022
1 parent 2140609 commit bb03045
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/generation.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,17 @@ static function autoName($config, CommonDBTM $item) {
'\\Y',
'\\m',
'\\d',
'\\s',
'\\n',
'\\g',
], [
Toolbox::str_pad($numero, strlen($mask), '0', STR_PAD_LEFT),
date('y'),
date('Y'),
date('m'),
date('d'),
$item->fields['serial'] ?? '',
$item->fields['name'] ?? '',
'',
],
$autonum
Expand Down

0 comments on commit bb03045

Please sign in to comment.