mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Small fixes
This commit is contained in:
parent
7dae7cb326
commit
f99195c07a
@ -37,7 +37,7 @@ class MailSentListener implements ShouldQueue
|
||||
public function handle(MessageSent $event)
|
||||
{
|
||||
|
||||
if(property_exists($event->message, 'invitation')){
|
||||
if(property_exists($event->message, 'invitation') && $event->message->invitation){
|
||||
|
||||
MultiDB::setDb($event->message->invitation->company->db);
|
||||
|
||||
|
@ -271,7 +271,7 @@ class HtmlEngine
|
||||
|
||||
$data['$company.city_state_postal'] = ['value' => $this->company->present()->cityStateZip($this->settings->city, $this->settings->state, $this->settings->postal_code, false) ?: ' ', 'label' => ctrans('texts.city_state_postal')];
|
||||
$data['$company.postal_city_state'] = ['value' => $this->company->present()->cityStateZip($this->settings->city, $this->settings->state, $this->settings->postal_code, true) ?: ' ', 'label' => ctrans('texts.postal_city_state')];
|
||||
$data['$company.name'] = ['value' => $this->company->present()->name() ?: ' ', 'label' => ctrans('texts.company_name')];
|
||||
$data['$company.name'] = ['value' => $this->settings->name ?: ' ', 'label' => ctrans('texts.company_name')];
|
||||
$data['$company.address1'] = ['value' => $this->settings->address1 ?: ' ', 'label' => ctrans('texts.address1')];
|
||||
$data['$company.address2'] = ['value' => $this->settings->address2 ?: ' ', 'label' => ctrans('texts.address2')];
|
||||
$data['$company.city'] = ['value' => $this->settings->city ?: ' ', 'label' => ctrans('texts.city')];
|
||||
|
Loading…
x
Reference in New Issue
Block a user