1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Merge pull request #4325 from turbo124/v5-develop

Minor fixes for client portal
This commit is contained in:
David Bomba 2020-11-18 08:00:02 +11:00 committed by GitHub
commit 6376d5fa98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 11 deletions

View File

@ -1 +1 @@
5.0.24 5.0.25

View File

@ -1191,6 +1191,8 @@ class Import implements ShouldQueue
if (! $user) { if (! $user) {
$user = UserFactory::create($this->company->account->id); $user = UserFactory::create($this->company->account->id);
} }
info("getting user id = {$user->id} - {$user->email}");
return $user; return $user;
} }

View File

@ -12,7 +12,7 @@ return [
'require_https' => env('REQUIRE_HTTPS', true), 'require_https' => env('REQUIRE_HTTPS', true),
'app_url' => rtrim(env('APP_URL', ''), '/').'/', 'app_url' => rtrim(env('APP_URL', ''), '/').'/',
'app_domain' => env('APP_DOMAIN', ''), 'app_domain' => env('APP_DOMAIN', ''),
'app_version' => '5.0.24', 'app_version' => '5.0.25',
'minimum_client_version' => '5.0.16', 'minimum_client_version' => '5.0.16',
'terms_version' => '1.0.1', 'terms_version' => '1.0.1',
'api_secret' => env('API_SECRET', false), 'api_secret' => env('API_SECRET', false),

View File

@ -8,12 +8,6 @@
@section('body') @section('body')
@if(!$invoice->isApproved() && $client->getSetting('custom_message_unapproved_quote'))
@component('portal.ninja2020.components.message')
{{ $client->getSetting('custom_message_unapproved_quote') }}
@endcomponent
@endif
@if(!$invoice->isPayable() && $client->getSetting('custom_message_paid_invoice')) @if(!$invoice->isPayable() && $client->getSetting('custom_message_paid_invoice'))
@component('portal.ninja2020.components.message') @component('portal.ninja2020.components.message')
{{ $client->getSetting('custom_message_paid_invoice') }} {{ $client->getSetting('custom_message_paid_invoice') }}

View File

@ -23,7 +23,7 @@ use Tests\TestCase;
class GroupSettingTest extends TestCase class GroupSettingTest extends TestCase
{ {
use MakesHash; use MakesHash;
use DatabaseTransactions; //use DatabaseTransactions;
use MockAccountData; use MockAccountData;
public function setUp(): void public function setUp(): void
@ -42,7 +42,7 @@ class GroupSettingTest extends TestCase
public function testAddGroupSettings() public function testAddGroupSettings()
{ {
$settings = new \stdClass; $settings = new \stdClass;
$settings->currency_id = 1; $settings->currency_id = '1';
$data = [ $data = [
'name' => 'testX', 'name' => 'testX',
@ -65,7 +65,7 @@ class GroupSettingTest extends TestCase
public function testArchiveGroupSettings() public function testArchiveGroupSettings()
{ {
$settings = new \stdClass; $settings = new \stdClass;
$settings->currency_id = 1; $settings->currency_id = '1';
$data = [ $data = [
'name' => 'testY', 'name' => 'testY',