mirror of
https://github.com/snipe/snipe-it.git
synced 2024-09-19 23:37:38 -07:00
Changed :company placeholder to {COMPANY} to match warranty URL variable style
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
d47b502d86
commit
ec48ecf6cd
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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>:company</code> will be replaced with the asset's company name',
|
||||
'label2_title_help_phold' => 'The placeholder <code>{COMPANY}</code> will be replaced with the asset's company name',
|
||||
'label2_asset_logo' => 'Use Asset Logo',
|
||||
'label2_asset_logo_help' => 'Use the logo of the asset's assigned company, rather than the value at <code>:setting_name</code>',
|
||||
'label2_1d_type' => '1D Barcode Type',
|
||||
|
|
Loading…
Reference in a new issue