mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +01:00
fixes for switch
This commit is contained in:
parent
76dcc61a5e
commit
595cccc97d
@ -100,8 +100,9 @@ class SearchController extends Controller
|
||||
switch($result['_index']) {
|
||||
case 'clients':
|
||||
|
||||
if($result['_source']['is_deleted'])
|
||||
continue;
|
||||
if($result['_source']['is_deleted']) //do not return deleted results
|
||||
break;
|
||||
|
||||
|
||||
$this->clients[] = [
|
||||
'name' => $result['_source']['name'],
|
||||
@ -113,9 +114,9 @@ class SearchController extends Controller
|
||||
break;
|
||||
case 'invoices':
|
||||
|
||||
if ($result['_source']['is_deleted']) {
|
||||
continue;
|
||||
}
|
||||
if ($result['_source']['is_deleted']) //do not return deleted invoices
|
||||
break;
|
||||
|
||||
|
||||
$this->invoices[] = [
|
||||
'name' => $result['_source']['name'],
|
||||
@ -126,7 +127,7 @@ class SearchController extends Controller
|
||||
break;
|
||||
case 'client_contacts':
|
||||
|
||||
if($result['_source']['__soft_deleted'])
|
||||
if($result['_source']['__soft_deleted']) // do not return deleted contacts
|
||||
continue;
|
||||
|
||||
$this->client_contacts[] = [
|
||||
|
Loading…
Reference in New Issue
Block a user