mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes
This commit is contained in:
parent
ba5d2f8fc3
commit
1c410b0a95
@ -558,14 +558,12 @@ class Import implements ShouldQueue
|
|||||||
{
|
{
|
||||||
$value = trim($value);
|
$value = trim($value);
|
||||||
|
|
||||||
$model_query = (new $model())
|
$model_query = $model::where($column, $value)
|
||||||
->query()
|
|
||||||
->where($column, $value)
|
|
||||||
->where('company_id', $this->company->id)
|
->where('company_id', $this->company->id)
|
||||||
->exists();
|
->exists();
|
||||||
|
|
||||||
if($model_query)
|
if($model_query)
|
||||||
return $value.'_'. Str::random(5);
|
return $value . '_' . Str::random(5);
|
||||||
|
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user