Changed :company placeholder to {COMPANY} to match warranty URL variable style

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-08-15 18:59:58 +01:00
parent d47b502d86
commit ec48ecf6cd
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ class Label implements View
if ($template->getSupportTitle()) {
$title = !empty($settings->label2_title) ?
str_ireplace(':company', $asset->company->name, $settings->label2_title) :
str_ireplace('{COMPANY}', $asset->company->name, $settings->label2_title) :
$settings->qr_text;
if (!empty($title)) $assetData->put('title', $title);
}

View file

@ -336,7 +336,7 @@ return [
'label2_template_help' => 'Select which template to use for label generation',
'label2_title' => 'Title',
'label2_title_help' => 'The title to show on labels that support it',
'label2_title_help_phold' => 'The placeholder <code>&colon;company</code> will be replaced with the asset&apos;s company name',
'label2_title_help_phold' => 'The placeholder <code>{COMPANY}</code> will be replaced with the asset&apos;s company name',
'label2_asset_logo' => 'Use Asset Logo',
'label2_asset_logo_help' => 'Use the logo of the asset&apos;s assigned company, rather than the value at <code>:setting_name</code>',
'label2_1d_type' => '1D Barcode Type',