1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fix for search

This commit is contained in:
Hillel Coren 2018-08-08 23:05:45 +03:00
parent 8411e37d80
commit fa2436da4c

View File

@ -181,6 +181,12 @@ class AccountRepository
if ($account->customLabel('client2')) {
$data[$account->present()->customLabel('client2')] = [];
}
if ($account->customLabel('invoice_text1')) {
$data[$account->present()->customLabel('invoice_text1')] = [];
}
if ($account->customLabel('invoice_text2')) {
$data[$account->present()->customLabel('invoice_text2')] = [];
}
if ($user->hasPermission(['view_client', 'view_invoice'], true)) {
$clients = Client::scope()