Skip to content
Snippets Groups Projects
Commit 9d0c5997 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #14848 TIME 0:15 fix display in summarySheet on contact field

parent e1e4a790
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
namespace Resource\controllers; namespace Resource\controllers;
use Basket\models\BasketModel;
use Contact\controllers\ContactController; use Contact\controllers\ContactController;
use CustomField\models\CustomFieldModel; use CustomField\models\CustomFieldModel;
use Endroid\QrCode\QrCode; use Endroid\QrCode\QrCode;
...@@ -30,7 +29,6 @@ use Respect\Validation\Validator; ...@@ -30,7 +29,6 @@ use Respect\Validation\Validator;
use setasign\Fpdi\Tcpdf\Fpdi; use setasign\Fpdi\Tcpdf\Fpdi;
use Slim\Http\Request; use Slim\Http\Request;
use Slim\Http\Response; use Slim\Http\Response;
use SrcCore\controllers\PreparedClauseController;
use SrcCore\models\CoreConfigModel; use SrcCore\models\CoreConfigModel;
use SrcCore\models\TextFormatModel; use SrcCore\models\TextFormatModel;
use SrcCore\models\ValidatorModel; use SrcCore\models\ValidatorModel;
...@@ -369,6 +367,9 @@ class SummarySheetController ...@@ -369,6 +367,9 @@ class SummarySheetController
} elseif ($fieldsType[$customFieldsId] == 'contact') { } elseif ($fieldsType[$customFieldsId] == 'contact') {
$customValues = ContactController::getContactCustomField(['contacts' => $customFieldsValues[$customFieldsId]]); $customValues = ContactController::getContactCustomField(['contacts' => $customFieldsValues[$customFieldsId]]);
$customValue = count($customValues) > 2 ? count($customValues) . ' ' . _CONTACTS : implode(", ", $customValues); $customValue = count($customValues) > 2 ? count($customValues) . ' ' . _CONTACTS : implode(", ", $customValues);
if (count($customValues) < 3) {
$pdf->SetFont('', '', 8);
}
} else { } else {
$customValue = implode(',', $customFieldsValues[$customFieldsId]); $customValue = implode(',', $customFieldsValues[$customFieldsId]);
} }
...@@ -380,6 +381,7 @@ class SummarySheetController ...@@ -380,6 +381,7 @@ class SummarySheetController
$nextLine = ($nextLine + 1) % 2; $nextLine = ($nextLine + 1) % 2;
$pdf->MultiCell($widthNotes, 30, $label . " : {$value}", 1, 'L', false, $nextLine, '', '', true, 0, true); $pdf->MultiCell($widthNotes, 30, $label . " : {$value}", 1, 'L', false, $nextLine, '', '', true, 0, true);
$pdf->SetFont('', '', 10);
} }
} }
} elseif ($unit['unit'] == 'senderRecipientInformations') { } elseif ($unit['unit'] == 'senderRecipientInformations') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment