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'), ' -> ',