mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Cast matomo id to string
This commit is contained in:
parent
69a1419e9b
commit
482918e3f3
@ -54,6 +54,8 @@ class UpdateCompanyRequest extends Request
|
||||
$rules['size_id'] = 'integer|nullable';
|
||||
$rules['country_id'] = 'integer|nullable';
|
||||
$rules['work_email'] = 'email|nullable';
|
||||
$rules['matomo_id'] = 'nullable|integer';
|
||||
|
||||
// $rules['client_registration_fields'] = 'array';
|
||||
|
||||
if (isset($input['portal_mode']) && ($input['portal_mode'] == 'domain' || $input['portal_mode'] == 'iframe')) {
|
||||
|
@ -150,7 +150,7 @@ class CompanyTransformer extends EntityTransformer
|
||||
'google_analytics_url' => (string) $company->google_analytics_key, //@deprecate 1-2-2021
|
||||
'google_analytics_key' => (string) $company->google_analytics_key,
|
||||
'matomo_url' => (string) $company->matomo_url,
|
||||
'matomo_id' => (int) $company->matomo_id,
|
||||
'matomo_id' => (string) $company->matomo_id ?: '',
|
||||
'enabled_item_tax_rates' => (int) $company->enabled_item_tax_rates,
|
||||
'client_can_register' => (bool) $company->client_can_register,
|
||||
'is_large' => (bool) $company->is_large,
|
||||
|
@ -19,7 +19,7 @@
|
||||
})();
|
||||
</script>
|
||||
<noscript><p><img src="{{ $company->matomo_url }}/matomo.php?idsite={{ $company->matomo_id }}&rec=1" style="border:0;" alt="" /></p></noscript>
|
||||
@elif (config('services.analytics.tracking_id'))
|
||||
@elseif (config('services.analytics.tracking_id'))
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-122229484-1"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user