From a289dfaf8804a175dbfe6c2f895103e9f4fb9cd8 Mon Sep 17 00:00:00 2001 From: snipe Date: Sun, 10 Mar 2024 14:33:53 +0000 Subject: [PATCH] Cleanup Signed-off-by: snipe --- app/Models/Labels/DefaultLabel.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/Models/Labels/DefaultLabel.php b/app/Models/Labels/DefaultLabel.php index 1377e93beb..9f7059bcd5 100644 --- a/app/Models/Labels/DefaultLabel.php +++ b/app/Models/Labels/DefaultLabel.php @@ -166,17 +166,9 @@ class DefaultLabel extends RectangleSheet foreach ($record->get('fields') as $field) { - $field_label = $field['label']; - - // If the label field in the visible fields on the asset label is NOT blank, - // set the label to that value. - if ($field_label!='') { - $field_label = $field_label.': '; - } - // Actually write the selected fields and their matching values static::writeText( - $pdf, $field_label . $field['value'], + $pdf, (($field['label']) ? $field['label'].' ' : '') . $field['value'], $textX1, $textY, 'freesans', '', $this->textSize, 'L', $textW, $this->textSize,