mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2026-03-03 02:47:02 +00:00
Add trim for search text
This commit is contained in:
@@ -72,6 +72,8 @@ class SearchController extends Controller
|
||||
$user = auth()->user();
|
||||
$company = $user->company();
|
||||
|
||||
$search = trim($search);
|
||||
|
||||
\Illuminate\Support\Facades\App::setLocale($company->locale());
|
||||
|
||||
$elastic = ClientBuilder::fromConfig(config('elastic.client.connections.default'));
|
||||
@@ -109,7 +111,6 @@ class SearchController extends Controller
|
||||
'client_contacts' => $this->client_contacts,
|
||||
'invoices' => $this->invoices,
|
||||
'quotes' => $this->quotes,
|
||||
|
||||
'expenses' => $this->expenses,
|
||||
'credits' => $this->credits,
|
||||
'recurring_invoices' => $this->recurring_invoices,
|
||||
|
||||
@@ -41,7 +41,7 @@ class ValidInvoiceScheme implements ValidationRule, ValidatorAwareRule
|
||||
|
||||
$errors = $r->validateRequest($value['Invoice'], InvoiceLevel::class);
|
||||
|
||||
echo print_r($errors, true);
|
||||
nlog($errors);
|
||||
|
||||
foreach ($errors as $key => $msg) {
|
||||
|
||||
|
||||
@@ -13,7 +13,11 @@ return new class extends Migration
|
||||
{
|
||||
|
||||
Schema::table('payments', function (Blueprint $table) {
|
||||
$table->text('sync')->nullable();
|
||||
|
||||
if (!Schema::hasColumn('payments', 'sync')) {
|
||||
$table->text('sync')->nullable();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user