Minor fixes for setting defaults on entity (#3447)
This commit is contained in:
parent
4f9c596d3a
commit
e095b8538f
1 changed files with 3 additions and 3 deletions
|
|
@ -468,11 +468,11 @@ class Client extends BaseModel implements HasLocalePreference
|
|||
|
||||
public function setCompanyDefaults($data, $entity_name)
|
||||
{
|
||||
if(strlen($this->getSetting($entity_name.'_terms')) >=1)
|
||||
if(strlen($data['terms']) == 0)
|
||||
$data['terms'] = $this->getSetting($entity_name.'_terms');
|
||||
|
||||
if(strlen($this->getSetting($entity_name.'_footer')) >=1)
|
||||
$data['footer'] =$this->getSetting($entity_name.'_footer');
|
||||
if(strlen($data['footer']) == 0)
|
||||
$data['footer'] = $this->getSetting($entity_name.'_footer');
|
||||
|
||||
if(strlen($this->public_notes) >=1)
|
||||
$data['public_notes'] = $this->public_notes;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue