Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Improved saving company data
Browse files Browse the repository at this point in the history
  • Loading branch information
rskrzypczak committed Oct 31, 2023
1 parent 1b82c99 commit 3061092
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Controller/Headers.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Headers
{
/** Default CSP img-src */
/** @todo remove one addres */
private const CSP_IMG = ['https://api.yetiforce.eu/', 'https://public.yetiforce.com/'];
private const CSP_IMG = ['https://api.yetiforce.eu'];

/**
* Default CSP header values.
Expand Down
1 change: 0 additions & 1 deletion languages/en-US/Settings/Companies.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"LBL_CITY": "City",
"LBL_ADDRESS": "Address",
"LBL_CONDITIONS_OF_REGISTRATION": "All data below must be true, it is an obligatory condition of registering the product that results from the license terms. %s \nIn order for the system to correctly verify the registration key, Cron must be active and function properly. \n\nThe validity of data submitted during registration is verified within 72h. Providing any false data will cause the entire registration to be declined. Thank you for your patience.\n%s",
"LBL_CHANGING_ENTITY_NAME": "Each change in the entity's information requires re-registration.",
"LBL_WEBSITE": "The website of the entity",
"LBL_WEBSITE_INFO": "Enter the entity's website or a personal website. DO NOT enter the URL where your CRM is installed.",
"LBL_INDUSTRY": "Industry",
Expand Down
2 changes: 1 addition & 1 deletion modules/Settings/Companies/models/Record.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function set($key, $value)
*/
public function getPreviousValue(string $fieldName = '')
{
return $fieldName ? ($this->changes[$fieldName] ?? false) : $this->changes;
return $fieldName ? (array_key_exists($fieldName, $this->changes) ? $this->changes[$fieldName] : false) : $this->changes;
}

/**
Expand Down

0 comments on commit 3061092

Please sign in to comment.