mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-05 18:52:44 +01:00
google analytics key (#3617)
This commit is contained in:
parent
563d41c83a
commit
a4c190a920
@ -54,6 +54,9 @@ class StoreCompanyRequest extends Request
|
||||
{
|
||||
$input = $this->all();
|
||||
|
||||
if(array_key_exists('google_analytics_url', $input))
|
||||
$input['google_analytics_key'] = $input['google_analytics_url'];
|
||||
|
||||
$company_settings = CompanySettings::defaults();
|
||||
|
||||
if (array_key_exists('settings', $input) && !empty($input['settings'])) {
|
||||
|
@ -110,7 +110,8 @@ class CompanyTransformer extends EntityTransformer
|
||||
'archived_at' => (int)$company->deleted_at,
|
||||
'created_at' =>(int)$company->created_at,
|
||||
'slack_webhook_url' => (string)$company->slack_webhook_url,
|
||||
'google_analytics_url' => (string)$company->google_analytics_key, //@todo need to change this to google_analytics_key
|
||||
'google_analytics_url' => (string)$company->google_analytics_key, //@deprecate
|
||||
'google_analytics_key' => (string)$company->google_analytics_key,
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user