From 1734297a29b02a242931fb906b3df0fcc0ea9f18 Mon Sep 17 00:00:00 2001 From: yllen Date: Mon, 18 Jul 2022 16:12:25 +0200 Subject: [PATCH] work for 10 - see #16 --- inc/contract.class.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/inc/contract.class.php b/inc/contract.class.php index 30d2180..9f9faf6 100644 --- a/inc/contract.class.php +++ b/inc/contract.class.php @@ -56,17 +56,17 @@ static function pdfMain(PluginPdfSimplePDF $pdf, Contract $contract){ $pdf->displayLine( ''.sprintf(__('%1$s: %2$s'), __('Name').'', $contract->fields['name']), - ''.sprintf(__('%1$s: %2$s'), __('Contract type').'', - Toolbox::stripTags(Dropdown::getDropdownName('glpi_contracttypes', - $contract->fields['contracttypes_id'])))); - - $pdf->displayLine( - ''.sprintf(__('%1$s: %2$s'), _x('phone', 'Number').'', - $contract->fields['num']), ''.sprintf(__('%1$s: %2$s'), __('Status').'', Toolbox::stripTags(Dropdown::getDropdownName('glpi_states', $contract->fields['states_id'])))); + $pdf->displayLine( + ''.sprintf(__('%1$s: %2$s'), __('Contract type').'', + Toolbox::stripTags(Dropdown::getDropdownName('glpi_contracttypes', + $contract->fields['contracttypes_id']))), + ''.sprintf(__('%1$s: %2$s'), _x('phone', 'Number').'', + $contract->fields['num'])); + $textduration = ""; if (!empty($contract->fields["begin_date"])) { $textduration = sprintf(__('%1$s %2$s'), ' -> ',