Skip to content

Commit

Permalink
work for 10 - see #16
Browse files Browse the repository at this point in the history
  • Loading branch information
yllen committed Jul 18, 2022
1 parent 3d21f28 commit 1734297
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions inc/contract.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@ static function pdfMain(PluginPdfSimplePDF $pdf, Contract $contract){

$pdf->displayLine(
'<b><i>'.sprintf(__('%1$s: %2$s'), __('Name').'</i></b>', $contract->fields['name']),
'<b><i>'.sprintf(__('%1$s: %2$s'), __('Contract type').'</i></b>',
Toolbox::stripTags(Dropdown::getDropdownName('glpi_contracttypes',
$contract->fields['contracttypes_id']))));

$pdf->displayLine(
'<b><i>'.sprintf(__('%1$s: %2$s'), _x('phone', 'Number').'</i></b>',
$contract->fields['num']),
'<b><i>'.sprintf(__('%1$s: %2$s'), __('Status').'</i></b>',
Toolbox::stripTags(Dropdown::getDropdownName('glpi_states',
$contract->fields['states_id']))));

$pdf->displayLine(
'<b><i>'.sprintf(__('%1$s: %2$s'), __('Contract type').'</i></b>',
Toolbox::stripTags(Dropdown::getDropdownName('glpi_contracttypes',
$contract->fields['contracttypes_id']))),
'<b><i>'.sprintf(__('%1$s: %2$s'), _x('phone', 'Number').'</i></b>',
$contract->fields['num']));

$textduration = "";
if (!empty($contract->fields["begin_date"])) {
$textduration = sprintf(__('%1$s %2$s'), ' -> ',
Expand Down

0 comments on commit 1734297

Please sign in to comment.