mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Evaluates if logo is uploaded before export PDF
This commit is contained in:
parent
4909cf2a9e
commit
eb34cf7917
|
@ -152,6 +152,13 @@ class AcceptanceController extends Controller
|
||||||
* since we want the moment-in-time proof of what the EULA was when they accepted it.
|
* since we want the moment-in-time proof of what the EULA was when they accepted it.
|
||||||
*/
|
*/
|
||||||
$branding_settings = SettingsController::getPDFBranding();
|
$branding_settings = SettingsController::getPDFBranding();
|
||||||
|
|
||||||
|
if (is_null($branding_settings->logo)){
|
||||||
|
$path_logo = "";
|
||||||
|
} else {
|
||||||
|
$path_logo = public_path() . '/uploads/' . $branding_settings->logo;
|
||||||
|
}
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'item_tag' => $item->asset_tag,
|
'item_tag' => $item->asset_tag,
|
||||||
'item_model' => $display_model,
|
'item_model' => $display_model,
|
||||||
|
@ -162,7 +169,7 @@ class AcceptanceController extends Controller
|
||||||
'assigned_to' => $assigned_to,
|
'assigned_to' => $assigned_to,
|
||||||
'company_name' => $branding_settings->site_name,
|
'company_name' => $branding_settings->site_name,
|
||||||
'signature' => ($sig_filename) ? storage_path() . '/private_uploads/signatures/' . $sig_filename : null,
|
'signature' => ($sig_filename) ? storage_path() . '/private_uploads/signatures/' . $sig_filename : null,
|
||||||
'logo' => public_path() . '/uploads/' . $branding_settings->logo,
|
'logo' => $path_logo,
|
||||||
'date_settings' => $branding_settings->date_display_format,
|
'date_settings' => $branding_settings->date_display_format,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue