Skip to content

Commit 71de1d6

Browse files
stonebuzzRom1-B
andauthored
Fix missing PDF generation menu (#515)
* Fix(Order): Fix PDF generation menu * adapt changelog --------- Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com>
1 parent c5093dd commit 71de1d6

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Fixed
1111

12+
- Fix missing PDF generation menu
1213
- Fix warning: Invalid relations declared between `glpi_plugin_order_accountsections` and `glpi_plugin_order_accountsections` table.
1314

1415
## [2.12.3] - 2025-11-25

inc/order.class.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,13 @@ public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
655655
|| static::canGenerateWithoutValidation())
656656
) {
657657
// generation
658-
$ong[2] = __s("Purchase order", "order");
658+
$ong[2] = self::createTabEntry(
659+
__s("Purchase order", "order"),
660+
0,
661+
null,
662+
'ti ti-file-type-pdf',
663+
);
664+
659665
}
660666

661667
return $ong;

0 commit comments

Comments
 (0)