mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fix for tests
This commit is contained in:
parent
bcb5b7ca76
commit
0748d52144
@ -15,7 +15,6 @@ use DateTime;
|
|||||||
use stdClass;
|
use stdClass;
|
||||||
use Carbon;
|
use Carbon;
|
||||||
use WePay;
|
use WePay;
|
||||||
use App\Models\Account;
|
|
||||||
|
|
||||||
class Utils
|
class Utils
|
||||||
{
|
{
|
||||||
@ -1062,14 +1061,14 @@ class Utils
|
|||||||
} elseif ($first == 'settings') {
|
} elseif ($first == 'settings') {
|
||||||
if ($second == 'bank_accounts') {
|
if ($second == 'bank_accounts') {
|
||||||
$page = ''; // TODO write docs
|
$page = ''; // TODO write docs
|
||||||
} elseif (in_array($second, Account::$basicSettings)) {
|
} elseif (in_array($second, \App\Models\Account::$basicSettings)) {
|
||||||
if ($second == 'products') {
|
if ($second == 'products') {
|
||||||
$second = 'product_library';
|
$second = 'product_library';
|
||||||
} elseif ($second == 'notifications') {
|
} elseif ($second == 'notifications') {
|
||||||
$second = 'email_notifications';
|
$second = 'email_notifications';
|
||||||
}
|
}
|
||||||
$page = '/settings.html#' . str_replace('_', '-', $second);
|
$page = '/settings.html#' . str_replace('_', '-', $second);
|
||||||
} elseif (in_array($second, Account::$advancedSettings)) {
|
} elseif (in_array($second, \App\Models\Account::$advancedSettings)) {
|
||||||
$page = "/{$second}.html";
|
$page = "/{$second}.html";
|
||||||
} elseif ($second == 'customize_design') {
|
} elseif ($second == 'customize_design') {
|
||||||
$page = '/invoice_design.html#customize';
|
$page = '/invoice_design.html#customize';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user