deprecation fixes
This commit is contained in:
parent
24ba1f3620
commit
00f1aa1da7
|
|
@ -139,7 +139,7 @@ class SearchController extends Controller
|
|||
|
||||
$results = $elastic->search($params);
|
||||
|
||||
nlog($results['hits']);
|
||||
// nlog($results['hits']);
|
||||
|
||||
$this->mapResults($results['hits']['hits'] ?? []);
|
||||
|
||||
|
|
|
|||
|
|
@ -278,8 +278,8 @@ class Invoice extends BaseModel
|
|||
'custom_value3' => (string)$this->custom_value3,
|
||||
'custom_value4' => (string)$this->custom_value4,
|
||||
'company_key' => $this->company->company_key,
|
||||
'po_number' => (string)$this->po_number,
|
||||
'line_items' => (array)$this->line_items,
|
||||
'po_number' => (string) $this->po_number,
|
||||
'line_items' => (array) $this->line_items,
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -476,7 +476,7 @@ class Payment extends BaseModel
|
|||
if (Ninja::isHosted()) {
|
||||
$domain = $this->company->domain();
|
||||
} else {
|
||||
$domain = strlen($this->company->portal_domain) > 5 ? $this->company->portal_domain : config('ninja.app_url');
|
||||
$domain = strlen($this->company->portal_domain ?? '') > 5 ? $this->company->portal_domain : config('ninja.app_url');
|
||||
}
|
||||
|
||||
return $domain.'/client/payment/'.$this->client->contacts()->first()->contact_key.'/'.$this->hashed_id.'?next=/client/payments/'.$this->hashed_id;
|
||||
|
|
|
|||
Loading…
Reference in New Issue